Skip to content
Snippets Groups Projects
Commit dda0bd3c authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

CholmodSolver: Allow to reuse a factorization

Computing Cholesky factorizations is expensive, and they absolutely
have to be reused if the same linear system is solved with several
different right hand sides.  The previous implementation of
CholmodSolver wouldn't allow this: The 'solve' method factorized
and solved together.

This patch makes the interface of the CholmodSolver class richer
to allow for factorization reuse.  It is now possible to set the
matrix, rhs and solution storage separately.  The matrix can be
factorized by calling a new 'factorize' method, and if 'solve'
is called afterwards, the matrix won't be factorized again.

On the other hand, when calling 'solve' by itself the 'solve'
method will do the factorization.  In other words, the patch
is fully backward-compatible.
parent 7443736c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment