|
Ublas : |
Subject: [ublas] list of indirect_arrays
From: Masanao Yajima (yajiyajijp_at_[hidden])
Date: 2010-11-05 20:39:54
I'm looking for a way to create a list or array of indirect_array objects.
So for example, I would like to store a and b into some list.
??????? listPtr;
boost::numeric::ublas::indirect_array<> a(2),b(3);
a(0)=0;
a(1)=2;
b(0)=2;
b(1)=1;
b(2)=0;
listPtr.push(a);
listPtr.push(b);
I thought ptr_list might be a way to go about things so I tried something like
boost::ptr_list<boost::numeric::ublas::indirect_array> intList;
intList.push_back(a);
intList.push_back(b);
But that didn't work.
Does anyone have a suggestion?
Thanks!
M