Boost logo

Ublas :

Subject: [ublas] random access of a matrix
From: Kraus Philipp (philipp.kraus_at_[hidden])
Date: 2010-09-30 10:57:21


Hello,

I have a very large matrix and must extract disjoint sets randomly.
The size is NxM and I need only the rows of the matrix (N). Is there
any boost functionality for this? My solution should be: create a
vector with index numbers [0..N) and swap the number random and use
this vector with a slice for extracting the rows.

Thanks

Phil