Hello,

I use a indirect_array to extract different rows of a matrix: 
ublas::matrix<double> data = /* data is filled */
ublas::indirect_array<> idx = /* get index array */

 

This call works well:   

ublas::matrix_indirect<ublas::matrix<double> > projectmatrix(data, idx, idx);

but I would like to get all columns of the matrix like
ublas::matrix_indirect<ublas::matrix<double> > projectmatrix(data, idx, range(0, data.size2()));

Should I create a temporary index array or can I use the ublas::range ?

Thanks

Phil