Registered Member
|
Hi Ivgot simple problem:
I would like to reset the 1. first column of sparse matrix, and set this to the new values AND INDEXES in for looop. And I dont want use block() or something like that....to copy the matrix.... Can i use this acces: ?? if (keep_A_RAM==true){ for (int k=0; k<1; ++k) for (SparseMatrix<double>::InnerIterator it(matA,k); it; ++it) { it.value()=0;//reset it.row(); // row index it.col(); // col index (here it is equal to k) it.index(); // inner index, here it is equal to it.row() } } |
Moderator
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]