Re: [eigen] data() for Map

[ Thread Index | Date Index | More Archives ]

On 15.04.2011 11:25, ESCANDE Adrien 222264 wrote:
there is only a const Scalar* data() method in MapBase and no non-const
version. What is the reason behind that ? DenseStorage on the contrary
has both methods.

It's due to const correctness issues:

For Map<Matrix<...> >, etc there is a non-const data() method, also
Matrix<...>::Map(double*) has a non-const data() accessor, while Matrix<...>::Map(const double*) has not.


Dipl.-Inf. Christoph Hertzberg
Cartesium 0.051
Universität Bremen
Enrique-Schmidt-Straße 5
28359 Bremen

Tel: (+49) 421-218-64252

Mail converted by MHonArc 2.6.19+