This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Block of sparse matrix doesn't support L-Value

Tags: None
(comma "," separated)
sunnyhsu
Registered Member
Posts
4
Karma
0
Please see the following code. I use Eigen 3.2. I believe this is a basic operation when constructing large scale matrices for optimization. Any ideas or some adapters I can use ? Thanks.

Code: Select all
void test_sparse_matrix ()
{
   typedef Eigen::SparseMatrix <double> _sparse ;
   _sparse m ;
   m.resize (3,4) ;
   _sparse n ; n.resize(2,2) ;

   m.block (1,1,2,2) = n; // compiling error    
}


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]