KASKADE 7 development version
Loading...
Searching...
No Matches
Kaskade::FactorizationOptions Struct Reference

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

Detailed Description

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:

@ UMFPACK
UMFPack from SuiteSparse, using 32 bit integer indices.
Definition enums.hh:45
FactorizationOptions & setMatrixProperties(MatrixProperties mp)
Convenience method for setting the matrix properties.
FactorizationOptions & setRefinementIterations(int i)
Convenience method for setting the number of refinement iterations.

Definition at line 36 of file factorizationOptions.hh.

Constructor & Destructor Documentation

◆ FactorizationOptions() [1/3]

Kaskade::FactorizationOptions::FactorizationOptions ( )
default

◆ FactorizationOptions() [2/3]

Kaskade::FactorizationOptions::FactorizationOptions ( MatrixProperties matrixProperty_)
inline

Definition at line 40 of file factorizationOptions.hh.

◆ FactorizationOptions() [3/3]

Kaskade::FactorizationOptions::FactorizationOptions ( MatrixProperties matrixProperty_,
int verbosity_ )
inline

Definition at line 43 of file factorizationOptions.hh.

Member Function Documentation

◆ setMatrixProperties()

FactorizationOptions & Kaskade::FactorizationOptions::setMatrixProperties ( MatrixProperties mp)
inline

Convenience method for setting the matrix properties.

Definition at line 59 of file factorizationOptions.hh.

◆ setNThreads()

FactorizationOptions & Kaskade::FactorizationOptions::setNThreads ( int n)
inline

Convenience method for setting the number of threads to be used.

Parameters
[in]nnonnegative desired value for number of threads to be used. 0 means use solver default.

Definition at line 70 of file factorizationOptions.hh.

◆ setRefinementIterations()

FactorizationOptions & Kaskade::FactorizationOptions::setRefinementIterations ( int i)
inline

Convenience method for setting the number of refinement iterations.

FactorizationOptions().setRefinementIterations(0);

Definition at line 109 of file factorizationOptions.hh.

Member Data Documentation

◆ matrixProperty

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().

◆ mumps

struct Kaskade::FactorizationOptions::Mumps Kaskade::FactorizationOptions::mumps

◆ nThreads

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().

◆ refinementIterations

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().

◆ verbosity

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().


The documentation for this struct was generated from the following file: