Re: [eigen] Question about ColMajor vs. RowMajor |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] Question about ColMajor vs. RowMajor*From*: Christoph Hertzberg <chtz@xxxxxxxxxxxxxxxxxxxxxxxx>*Date*: Sat, 17 Dec 2011 11:04:30 +0100

On 17.12.2011 04:38, Rhys Ulerich wrote:

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).

Christoph -- ---------------------------------------------- Dipl.-Inf. Christoph Hertzberg Cartesium 0.051 Universität Bremen Enrique-Schmidt-Straße 5 28359 Bremen Tel: (+49) 421-218-64252 ----------------------------------------------

**References**:**[eigen] Question about ColMajor vs. RowMajor***From:*Michael Dixon

**Re: [eigen] Question about ColMajor vs. RowMajor***From:*Christoph Hertzberg

**Re: [eigen] Question about ColMajor vs. RowMajor***From:*Rhys Ulerich

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Question about ColMajor vs. RowMajor** - Next by Date:
**Re: [eigen] Question about ColMajor vs. RowMajor** - Previous by thread:
**Re: [eigen] Question about ColMajor vs. RowMajor** - Next by thread:
**Re: [eigen] Question about ColMajor vs. RowMajor**

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