I was wondering what was the best way to remove a row from uBlas's compressed matrix? I was wondering if there was some way to get a hold of the compressed column data inside the vector? I am looking at this page http://netlib.org/linalg/html_templates/node92.html and can't find how to access those elements.
My matrix is declared as follows:
ublas::compressed_matrix
<
double,
ublas::column_major,
0,
ublas::unbounded_array<int>,
ublas::unbounded_array<double> >
My eventual goal is to use this method to remove all zero rows.
EDIT: I suspect the solution will involve changing the ublas::compressed_matrix structure internally. I think its safe to assume that the number of non-zero entries will be on the order of 1k. I hope to call the method to remove a row, maybe, 20 times.