Boost logo

Ublas :

Subject: Re: [ublas] define a matrix in my class
From: Riccardo Rossi (rrossi_at_[hidden])
Date: 2010-02-01 13:11:39


Hi,

try

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

ciao
Riccardo

On Mon, 2010-02-01 at 19:00 +0100, Gianluigi Caddeo wrote:
> hi
>
> I try to define a matrix in my class but
> I'have every time this problem:
>
> myclass.h:53: error: expected identifier before numeric constant
> myclass.h:53: error: expected ‘,’ or ‘...’ before numeric constant
>
> the code is like this:
>
> #include <boost/numeric/ublas/blas.hpp>
> #include <boost/numeric/ublas/matrix.hpp>
>
> namespace ublas = boost::numeric::ublas;
>
> class myclass {
>
> public:
>
> ublas::identity_matrix<double> qt(3);
>
> };
>
>
> where is the problem? please help me...
>
>
> thanks you
>
> gigi
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: rrossi_at_[hidden]