This forum has been archived. All content is frozen. Please use KDE Discuss instead.

sparse solver ordering

Tags: None
(comma "," separated)
kmanuele
Registered Member
Posts
7
Karma
0

sparse solver ordering

Wed Nov 11, 2015 6:29 pm
Using other sparse solvers with ordering (AMD, typically), we find that the ordering process has a big affect on performance, but takes some time.

For our application, the matrix pattern does not change much between iterations. We've found that we can re-use the permutation vector, avoiding ordering at each iteration, and achieve noticeable increases in speed. Whenever the matrix size changes, or after 'N' iterations, we re-order and continue with a new permutation vector.

Can this be done in Eigen?

thanks in advance

Kevin
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: sparse solver ordering  Topic is solved

Wed Nov 11, 2015 8:04 pm
Sure, if the pattern does not change, you can call factorize() instead of compute() for the other runs, see the second example there: http://eigen.tuxfamily.org/dox-devel/gr ... tml#title4
kmanuele
Registered Member
Posts
7
Karma
0

Re: sparse solver ordering

Thu Nov 12, 2015 3:57 pm
thanks, again.

Kevin


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]