Re: [eigen] Re: yet another deep change wrt storage orders...

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


> The fix is to write:
>
>    Array<Scalar, NCHAN, Dynamic, NCHAN==1 ? RowMajor : ColMajor,
> NCHAN, MAXDATA>
>
> I understand that you said that your code relies on the data being
> col-major, that's why in the above line I keep ColMajor as soon as
> NCHAN!=1. In the case NCHAN==1, you have a vector anyway, so the
> storage order is useless abstract nonsense, so it doesn't cost
> anything to call it RowMajor.

Great, this works, thanks Benoit!



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