Re: [eigen] Question about ColMajor vs. RowMajor

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


> I assume you compiled with -DNDEBUG or something similar?
> IIRC operator() with single argument should only be used for
> single-dimensional matrices (i.e. vectors).
>
> Actually (question to Gael/Benoit): Shouldn't there be a compile-time
> check/static assertion for operator(), making it work only on matrices which
> are known at compile-time to have (at least) one dimension fixed to 1?
>
> Or is operator()(int) supposed to mime the MATLAB behavior of mat(i) now
> (i.e. viewing the matrix data as a vector)?

The docs mention that operator()(Index) is available when
LinearAccessBit is set
(http://eigen.tuxfamily.org/dox/group__flags.html).

- Rhys



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