Re: [eigen] Is it really impossible to modify a column of a matrix with in function?

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


On 30.08.2011 12:56, Helmut Jarausch wrote:
It would be nice if there were a proxy class doing this for me.
E.g. within my own (dated) matrix/vector class I had proxy classes
Vector_L and Matrix_L which were used as return values and which can be
passed as const reference. All write-access operators, like operator[],
operator>>  and operator== do const casting internally.

Basically this would be a Block<MatrixType, Dynamik, 1> in your case, however you could not pass a normal VectorXi to your method then, because there is no implicit cast to a templated type, iirc.

Maybe something can be worked out, if bug 58 is worked on someday:
http://eigen.tuxfamily.org/bz/show_bug.cgi?id=58
I started working on a proposal once, but unfortunately never find time to finish :(

Christoph


--
----------------------------------------------
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+ http://listengine.tuxfamily.org/