|
Ublas : |
Subject: [ublas] compressed_matrix question
From: openspy_at_[hidden]
Date: 2009-06-06 23:26:08
Hello all,
I am a newbie to Ublas and Boost, with a question regarding the
compressed_matrix class.
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
desired row?
2. How do I find out the memory (bytes) occupied by a given compressed
matrix? For the example at:
http://www.guwi17.de/ublas/doc/html/ex__sparse1_8cpp-source.html,
I tried sizeof(M), but it always returs 56 even if I change number of
non-zero elements.
Thanks a lot,
Kalpit