Boost logo

Ublas :

Subject: Re: [ublas] define a matrix in my class
From: David Bellot (david.bellot_at_[hidden])
Date: 2010-02-02 09:45:33


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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: david.bellot_at_[hidden]
>

-- 
David Bellot, PhD
david.bellot_at_[hidden]
http://david.bellot.free.fr