Boost logo

Ublas :

Subject: [ublas] How to do a generic projection on a matrix?
From: Niko Vuokko (niko.vuokko_at_[hidden])
Date: 2009-01-26 09:25:02


I would like to take a generic projection on a matrix. This means creating
arrays of row and column indices and then use project only on those
entries. It might happen like this:

matrix<int> M;
vector<int> rows, cols;
matrix_expression<>??? result = project(M, rows, cols);

but it just won't work. The API docs only mention using ranges or splices as
the index sets, but I found this one mailing list entry where a generic
vector was used: http://www.nabble.com/Slicing-to20605797.html
I tried using the code from there without success.

Thanks,

niko