![]() |
KASKADE 7 development version
|
The Options struct allows to specify several options of factorization. More...
#include <factorizationOptions.hh>
Classes | |
| struct | Mumps |
| The Mumps struct allows to specify options which are exclusively relevant for the MUMPS solver. More... | |
Public Member Functions | |
| FactorizationOptions ()=default | |
| FactorizationOptions (MatrixProperties matrixProperty_) | |
| FactorizationOptions (MatrixProperties matrixProperty_, int verbosity_) | |
| FactorizationOptions & | setMatrixProperties (MatrixProperties mp) |
| Convenience method for setting the matrix properties. | |
| FactorizationOptions & | setNThreads (int n) |
| Convenience method for setting the number of threads to be used. | |
| FactorizationOptions & | setRefinementIterations (int i) |
| Convenience method for setting the number of refinement iterations. | |
Public Attributes | |
| MatrixProperties | matrixProperty = MatrixProperties::GENERAL |
| We can specify the properties of the matrix, which might be taken into account for selecing an ordering. | |
| int | nThreads = 0 |
| Number of threads to use. | |
| int | verbosity = 0 |
| How detailed information should be reported. | |
| int | refinementIterations = -1 |
| Number of refinement iterations. | |
| struct Kaskade::FactorizationOptions::Mumps | mumps |
The Options struct allows to specify several options of factorization.
Not all sparse factorization routines respect all of the options.
The options can conveniently be set on direct solver construction, as the following example illustrates:
Definition at line 36 of file factorizationOptions.hh.
|
default |
Referenced by setMatrixProperties(), setNThreads(), and setRefinementIterations().
|
inline |
Definition at line 40 of file factorizationOptions.hh.
|
inline |
Definition at line 43 of file factorizationOptions.hh.
|
inline |
Convenience method for setting the matrix properties.
Definition at line 59 of file factorizationOptions.hh.
|
inline |
Convenience method for setting the number of threads to be used.
| [in] | n | nonnegative desired value for number of threads to be used. 0 means use solver default. |
Definition at line 70 of file factorizationOptions.hh.
|
inline |
Convenience method for setting the number of refinement iterations.
Definition at line 109 of file factorizationOptions.hh.
| MatrixProperties Kaskade::FactorizationOptions::matrixProperty = MatrixProperties::GENERAL |
We can specify the properties of the matrix, which might be taken into account for selecing an ordering.
Definition at line 50 of file factorizationOptions.hh.
Referenced by FactorizationOptions(), FactorizationOptions(), Kaskade::MUMPSFactorization< Scalar >::MUMPSFactorization(), and setMatrixProperties().
| struct Kaskade::FactorizationOptions::Mumps Kaskade::FactorizationOptions::mumps |
| int Kaskade::FactorizationOptions::nThreads = 0 |
Number of threads to use.
Some solvers (e.g., CHOLMOD) can use internally multi-threaded factorization. This property sets a desired value for the number of threads. Solvers can choose to ignore this request. A value 0 is always ignored, i.e., the solver defaults are used.
Definition at line 84 of file factorizationOptions.hh.
Referenced by setNThreads().
| int Kaskade::FactorizationOptions::refinementIterations = -1 |
Number of refinement iterations.
Some solvers can perform iterative refinement for stability and accuracy. This controls how many iterations to perform. Negative values mean use the solver's default. Zero means just solve once.
Definition at line 100 of file factorizationOptions.hh.
Referenced by setRefinementIterations().
| int Kaskade::FactorizationOptions::verbosity = 0 |
How detailed information should be reported.
0 is the most basic information, higher values correspond to more detailed reporting.
Definition at line 91 of file factorizationOptions.hh.
Referenced by FactorizationOptions().