Re: [eigen] is MAP oneway ? (urgent)

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


2009/6/24 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
> Of course: process takes a VectorXd reference, but D is not a VectorXd.
>
> The biggest common denominator between VectorXd and Map<VectorXd> is
> MatrixBase, so you want process to take a MatrixBase reference:
>
> template<typename Derived>
> void process(const MatrixBase<Derived>& DATA);

oops, remove the const here.

Benoit



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/