Registered Member
|
hi! I would like to creat a vector of many dynamic float matrices (all same size). how do I do this?
vector<MatrixXf> test(n) ?!? vector<MatrixXf*> test(n) something like: Matrix<Matrix<double,Dynamic,Dynamic>,Dynamic,1> mA; mA.resize(5); for(int i =0; i< 5;i++) { mA(i) = C.block(0,0,30,2); } what's wrong? |
Moderator
|
|
Registered Member
|
how could i work with pointer?
MatrixXf* test = Nulle test->resize(5,2); test(0,1) = 6.0; // <-- this is wrong, what shoul it be? |
Registered Member
|
((*test)(0,1))=6.0 ? |
Registered Member
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]