Subject: [ublas] compressed_matrix question
Date: 2009-06-06 23:26:08
I am a newbie to Ublas and Boost, with a question regarding the
1. I want to iterate over all non-zero elements of a particular row.
How do I get an iterator for a particular row of the matrix? I know I
can get the iterator to the first/last row using .begin1() and end1().
Do I just have to increment/decrement these iterators to get to the
2. How do I find out the memory (bytes) occupied by a given compressed
matrix? For the example at:
I tried sizeof(M), but it always returs 56 even if I change number of
Thanks a lot,