Boost logo

Ublas :

Subject: Re: [ublas] bug on compressed_matrix ?
From: Thomas Klimpel (Thomas.Klimpel_at_[hidden])
Date: 2013-01-16 13:54:10

Riccardo Rossi wrote:
> i am kind of shocked...
> doesn't ublas guarantee the exact csr format???

What exactly are you shocked about?
1) The fact that the member functions "index1_data()" and "index2_data()" return references to internal storage (instead of some proxy view object), so that the user has to also query "filled1()" and "filled2()"
2) The fact that empty trailing rows will be ignored, unless you call the "complete_index1_data()" member function

I think you can achieve the exact csr format with ublas, even so it isn't an invariant of compressed_matrix. You just have to call the right member functions.