Re: [eigen] RowsAtCompileTime vs MaxRowsAtCompileTime

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


This is because the checks are done at the level of DenseStorageBase.

By the time you reach ei_matrix_storage, the tests have already been done.

By the way, ei_matrix_storage needs to be renamed to something like
ei_dense_storage.

Benoit

2010/7/21 Manoj Rajagopalan <rmanoj@xxxxxxxxx>:
> hi Eigen developers,
>
>  Another question about the design of Eigen3.
>
>  I notice that no checks are performed in ei_matrix_storage<> in the resize
> member functions, to see if the rows requested exceeds MaxRowsAtCompileTime
> if the latter is finite (specified when instantiating the template). Likewise
> for columns. So, is the max-value only for memory allocation purposes with
> the programmer being responsible for preventing out-of-bounds access? I am
> just a little surprised to see no static assertion to check for this error.
>
> thanks,
> Manoj
>
>
>



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