![]() |
KASKADE 7 development version
|
Factorization of sparse linear systems with CHOLMOD. More...
#include <cholmod_solve.hh>
Public Types | |
| typedef Scalar | field_type |
| The type of matrix elements (a field type). | |
| using | Options = FactorizationOptions |
Public Member Functions | |
| CholmodFactorization (Index n_, std::vector< Index > const &ridx, std::vector< Index > const &cidx, std::vector< Scalar > const &values, FactorizationOptions opt) | |
| Constructor keeping input data in triplet format (aka coordinate format) constant. | |
| ~CholmodFactorization () | |
| void | solve (std::vector< Scalar > const &b, std::vector< Scalar > &x, bool=false) const |
| Solves the system \( Ax = b \) for the given right hand side. | |
| void | solve (Scalar const *b, Scalar *x, bool=false) const |
| Solves the system \( Ax = b \) for the given right hand side. | |
| void | solve (std::vector< Scalar > const &b, std::vector< Scalar > &x, int nr, bool=false) const |
| Solves the system \( Ax = b \) for nr right hand sides. | |
| void | solve (std::vector< Scalar > &b) const |
| Solves the system \( Ax = b \) for the given right hand side. | |
| void | solve (Scalar *b) const |
| Solves the system for the given right hand side. | |
| virtual size_t | size () const |
| reports the dimension of the system | |
| void | setVerbose (int verbose_) |
| int | getVerbose () const |
| Info const & | info () const |
System solution | |
| virtual void | solve (field_type *b) const =0 |
| Solves the system \( Ax=b \) for the given right hand side \( b \). | |
Protected Attributes | |
| Options | options |
| Info | info_ |
Factorization of sparse linear systems with CHOLMOD.
| Scalar | the scalar matrix entry type (float or double) |
| Index | the integer type to be used by CHOLMOD. Either long or int. |
Definition at line 47 of file cholmod_solve.hh.
|
inherited |
The type of matrix elements (a field type).
Definition at line 48 of file factorization.hh.
|
inherited |
Definition at line 50 of file factorization.hh.
| Kaskade::CholmodFactorization< Scalar, Index >::CholmodFactorization | ( | Index | n_, |
| std::vector< Index > const & | ridx, | ||
| std::vector< Index > const & | cidx, | ||
| std::vector< Scalar > const & | values, | ||
| FactorizationOptions | opt ) |
Constructor keeping input data in triplet format (aka coordinate format) constant.
The matrix must be symmetric. Only the lower triangular part is accessed. Construction is factorization!
| n | size of the (square) matrix, i.e. the number of rows |
| ridx | row indices |
| cidx | column indices |
| values | entry values |
| Kaskade::CholmodFactorization< Scalar, Index >::~CholmodFactorization | ( | ) |
|
inlineinherited |
Definition at line 116 of file factorization.hh.
Referenced by Kaskade::MUMPSFactorization< Scalar >::init(), Kaskade::MUMPSFactorization< Scalar >::MUMPSFactorization(), Kaskade::MUMPSFactorization< Scalar >::MUMPSFactorization(), Kaskade::SUPERLUFactorization< Scalar >::SUPERLUFactorization(), and Kaskade::SUPERLUFactorization< Scalar >::SUPERLUFactorization().
|
inlineinherited |
Definition at line 118 of file factorization.hh.
|
inlineinherited |
Definition at line 115 of file factorization.hh.
Referenced by Kaskade::MUMPSFactorization< Scalar >::MUMPSFactorization(), and Kaskade::MUMPSFactorization< Scalar >::MUMPSFactorization().
|
inlinevirtual |
reports the dimension of the system
Implements Kaskade::Factorization< Scalar >.
Definition at line 148 of file cholmod_solve.hh.
|
inline |
Solves the system for the given right hand side.
| [in,out] | b | on entry, right hand side (vector with length at least n). On exit, the first n entries are overwritten with the solution vector. |
This is slightly less efficient than providing the solution vector separately, as internally additional work space is allocated and released.
Definition at line 138 of file cholmod_solve.hh.
|
inlinevirtual |
Solves the system \( Ax = b \) for the given right hand side.
| [in] | b | right hand side vector, an array of length at least n. |
| [out] | x | solution vector, an array of length at least n. |
Implements Kaskade::Factorization< Scalar >.
Definition at line 90 of file cholmod_solve.hh.
|
inlinevirtual |
Solves the system \( Ax = b \) for the given right hand side.
| [in,out] | b | on entry, right hand side (vector with length at least n). On exit, solution vector of size n. |
This is slightly less efficient than providing the solution vector separately, as internally additional work space is allocated and released.
Reimplemented from Kaskade::Factorization< Scalar >.
Definition at line 120 of file cholmod_solve.hh.
|
inlinevirtual |
Solves the system \( Ax = b \) for the given right hand side.
| [out] | x | solution vector (resized to the number of matrix columns). |
Reimplemented from Kaskade::Factorization< Scalar >.
Definition at line 77 of file cholmod_solve.hh.
|
inline |
Solves the system \( Ax = b \) for nr right hand sides.
| [in] | b | right hand side vectors, an array of length at least nr*n. |
| [out] | x | solution vector (will be resized to nr*n). |
Definition at line 101 of file cholmod_solve.hh.
|
pure virtualinherited |
Solves the system \( Ax=b \) for the given right hand side \( b \).
| [in,out] | b | right hand side, is overwritten with the solution \( x \). This must point to a memory region of length of system dimension. |
|
protectedinherited |
Definition at line 127 of file factorization.hh.
Referenced by Kaskade::MUMPSFactorization< Scalar >::factorize(), and info().
|
protectedinherited |
Definition at line 126 of file factorization.hh.
Referenced by Kaskade::MUMPSFactorization< Scalar >::analyze(), Factorization(), Kaskade::MUMPSFactorization< Scalar >::factorize(), getVerbose(), Kaskade::MUMPSFactorization< Scalar >::init(), Kaskade::MUMPSFactorization< Scalar >::MUMPSFactorization(), and setVerbose().