Boost logo

Ublas :

Subject: [ublas] csr triplets
From: Umut Tabak (u.tabak_at_[hidden])
Date: 2011-01-12 04:36:53


Dear all,

I did this post before in reply to Ricardo Rossi, however let me repeat
that.

I use a compressed_matrix and try to get the triplets...

Could someone explain me why the output of the attached program is

[4,4]((1,0,0,5.5),(0,0,2.3,2),(0,0,4,0),(0,5.5,0,0))
Size of nonzeros : 6 // this is ok
0, 2, 4, 5, 6, // if this is a CSR format
                                 // why is not row_ptr(n+1) != nnz +1,
but 6
0, 3, 2, 3, 2, 1, 0, 0, // what are the extra zeros
1, 5.5, 2.3, 2, 4, 5.5, 0, 0, // also here

Best wishes,
Umut