Boost logo

Ublas :

Subject: [ublas] set of ublas matrix
From: Masanao Yajima (yajiyajijp_at_[hidden])
Date: 2011-08-03 19:03:28


Hi List

Is there away to create a "set" of ublas matrix.
(by set I mean it in the most abstract way)

I would like to create bunch of matrix<double> and store it in some form of
a data structure
then retrieve them by an index and use it as a matrix<double>.

Here is a vague pseudo code for what I would like to do

something A;
for( int i=0;i<10;i++){
  dmatrix b(10,10);
  set values to b;
  A(i) =b;
}

//then use it as

for( int i=0;i<10;i++){
  dmatrix c = A(i);
  do calculation with c
}

Or if you have better way to do something similar, I'd appreciate your
input.

Thank you for your help.

Cheers
Yajima