[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-users] [GMM++] Resizing a matrix

From: Fem Dev
Subject: [Getfem-users] [GMM++] Resizing a matrix
Date: Thu, 22 May 2008 08:30:31 -0700 (PDT)

Hello again,

I have another question about GMM++. I want to resize a matrix without keeping 
old entries in it. In fact, all the entries have to be reset to zero.
The documentation says:

MATRIX_TYPE M(m1, n1);
.... your code
std::swap(M, MATRIX_TYPE(m2, n2)); // resize matrix M.My example code looks 
almost the same:

gmm::dense_matrix<double> A(84,84);
std::swap(A, gmm::dense_matrix<double>(24, 24))

The compiler returns this error:
...\..\main.cpp no matching function for call to 
`swap(gmm::dense_matrix<double>&, gmm::dense_matrix<double>)' 

So, what wrong with it? Thanks a lot for your help.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]