Re: [eigen] Passing Eigen::Map types to functions that take Eigen types

[ Thread Index | Date Index | More Archives ]

Am 02.07.2015 um 10:18 schrieb Martin Felis:
At the moment the MatrixXd are nicely typedef'ed and can be used both
for data and arguments. Having either MatrixXd for data and
Ref<MatrixXd> would increase complexity.

So you'd need another typedef MatrixXdRef (which is simply a MatrixXd& for SimpleMath), and probably also MatrixXdCRef (const Ref<const MatrixXd>& or const MatrixXd&). I don't see how this would be more complicated than faking a reference by inheriting from MatrixXd.


Dipl.-Inf., Dipl.-Math. Christoph Hertzberg
Cartesium 0.049
Universität Bremen
Enrique-Schmidt-Straße 5
28359 Bremen

Tel: +49 (421) 218-64252

Mail converted by MHonArc 2.6.19+