Boost logo

Ublas :

Subject: [ublas] matrix reordering
From: Umut Tabak (u.tabak_at_[hidden])
Date: 2010-09-23 09:28:54

Dear all,

I was looking for some ways to reorder my sparse matrices.

For the moment, the only way I see for this is to find the indices of
the original nonzeros and values to keep them in a triplet somehow then
try to create a mapping to the new ordering and assign according to this
mapping. I guess there are no direct ways implemented for this kind of

Or are there any better ideas?

Sth like:

A= diag[1 2 3] original order [1 2 3]

new order is [3 1 2] and B = diag([3 1 2])

Best regards,