I'm lost. What's the trick here ?
(and I thought I was good in C++ ;-) )

I guess so. Just to make the list of possibilities more complete, to prevent
multiple copies (since we're dealing with an identity matrix) and to have no
construction at run-time at all,

struct A {
   static ublas::identity_matrix<double> qt;
};

ublas::identity_matrix<double> A::qt = ublas::identity_matrix<double>(3);

Cheers,

Rutger



_______________________________________________
ublas mailing list
ublas@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/ublas
Sent to: david.bellot@gmail.com



--
David Bellot, PhD
david.bellot@gmail.com
http://david.bellot.free.fr