Re: [eigen] Bounds checking in Eigen?

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


Yes, by default (that is, as long as EIGEN_NO_DEBUG isn't defined),
Eigen checks everything with asserts, which means that Eigen calls
will never result in a bad memory access.

Check this by yourself by doing e.g. VectorXf v(3); v(5);

Benoit

2010/5/21 Manoj Rajagopalan <rmanoj@xxxxxxxxx>:
> Hi,
>
>  This might be a noob question: when built without the EIGEN_NO_DEBUG, in
> fact built without any -D flags, does Eigen do any
> array-access-bounds-checking?
>
> Thanks,
> Manoj
>
>
>



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