Boost matix question from a newbie

Hello,
I want to use the boost matrices, and I have examples how to deal with that.
But now, I want to
store those matrix in a std-Array or an std-list. To do this, I must be able
to name the type of for example a 3X3 matrix.
I mean I nbeed an expressione similar to
std::vector

On 13 December 2011 08:55, boostnewbie
I want to use the boost matrices, and I have examples how to deal with that. But now, I want to store those matrix in a std-Array or an std-list. To do this, I must be able to name the type of for example a 3X3 matrix.
I mean I nbeed an expressione similar to std::vector
> trafos; but I don´t know how to say that the matrix is a 3X3 type.
This isn't directly possible with ublas' matrices since the dimensions are not part of the type but are specified on construction of a matrix. You'll need to extend or wrap the matrix or vector to perform a check on insertions to ensure that non-3x3 matrices are not inserted. -- Rob Desbois Blog: http://theotherbranch.wordpress.com/ "I disapprove of what you say, but I’ll defend to the death your right to say it", Voltaire

Egon, if i understand you correctly are you trying to take a matrix and
convert it to a std::vector?
Mike
On Tue, Dec 13, 2011 at 12:55 AM, boostnewbie
Hello,
I want to use the boost matrices, and I have examples how to deal with that. But now, I want to store those matrix in a std-Array or an std-list. To do this, I must be able to name the type of for example a 3X3 matrix.
I mean I nbeed an expressione similar to std::vector
> trafos; but I don´t know how to say that the matrix is a 3X3 type. Thanks in advence Egon
-- View this message in context: http://boost.2283326.n4.nabble.com/Boost-matix-question-from-a-newbie-tp4189... Sent from the Boost - Users mailing list archive at Nabble.com. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
boostnewbie
-
Michael Morrison
-
Rob Desbois