Boost logo

Ublas :

Subject: [ublas] submatrix with indexvector
From: Kraus Philipp (philipp.kraus_at_[hidden])
Date: 2010-07-22 15:15:50


Hello,

can I extract a submatrix from a ublas::matrix with an indexvector?
I've got a ublas::vector with index values and a
ublas::matrix(1000,1000). The indexvector holds only 12 index position
and I need something like:

ublas::matrix x(1000,1000);
project(x, indexvector, indexvector) += other matrix with
indexvector.size x indexvector.size

I must cut a submatrix which is not continously and adds another
matrix. Are there any boost operations or should I run over all
elements?

Thanks

Phil