Re: [eigen] data() for Map |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen 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:
http://eigen.tuxfamily.org/bz/show_bug.cgi?id=54
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.
Christoph
--
----------------------------------------------
Dipl.-Inf. Christoph Hertzberg
Cartesium 0.051
Universität Bremen
Enrique-Schmidt-Straße 5
28359 Bremen
Tel: (+49) 421-218-64252
----------------------------------------------