This class provides an interface for UMFPACK direct solver from SuiteSparse linear algebra package.
More...
#include <SuiteSparse.hpp>
This class provides an interface for UMFPACK direct solver from SuiteSparse linear algebra package.
Definition at line 50 of file SuiteSparse.hpp.
◆ SuiteSparse()
Constructor with parameters.
- Parameters
-
[in] | params | the linear solver parameters |
◆ colIndices()
Returns the array with the column indices.
- Returns
- the array with the column indices
◆ condEst()
real64 geosx::SuiteSparse::condEst |
( |
| ) |
const |
Estimates the condition number of the matrix.
- Returns
- the estimated condition number
◆ create()
Creates the SuiteSparse data structure.
- Parameters
-
[in] | params | the linear solver parameters |
◆ getComm()
MPI_Comm geosx::SuiteSparse::getComm |
( |
| ) |
const |
Returns the communicator.
- Returns
- the communicator
◆ getSubComm()
MPI_Comm geosx::SuiteSparse::getSubComm |
( |
| ) |
const |
Returns the subcommunicator.
- Returns
- the subcommunicator
◆ nonZeros()
SSInt geosx::SuiteSparse::nonZeros |
( |
| ) |
const |
Returns the number of non zeros.
- Returns
- the number of non zeros
◆ numCols()
SSInt geosx::SuiteSparse::numCols |
( |
| ) |
const |
Returns the number of columns.
- Returns
- the number of columns
◆ numRows()
SSInt geosx::SuiteSparse::numRows |
( |
| ) |
const |
Returns the number of rows.
- Returns
- the number of rows
◆ precisionTolerance()
real64 geosx::SuiteSparse::precisionTolerance |
( |
| ) |
const |
Returns the precision tolarance used in SuiteSparse class.
- Returns
- the precision tolerance used in SuiteSparse class
◆ relativeTolerance()
real64 geosx::SuiteSparse::relativeTolerance |
( |
| ) |
const |
Estimates the relative tolerance for the matrix.
- Returns
- the relative tolerance (condEst * eps)
◆ resize()
void geosx::SuiteSparse::resize |
( |
SSInt const |
numRows, |
|
|
SSInt const |
numCols, |
|
|
SSInt const |
nonZeros |
|
) |
| |
Allocate the internal data storage arrays.
- Parameters
-
[in] | numRows | the number of rows |
[in] | numCols | the number of columns |
[in] | nonZeros | the number of non zeros |
◆ rowPtr()
Returns the array with the row pointers.
- Returns
- the array with the row pointers
◆ setComm()
void geosx::SuiteSparse::setComm |
( |
MPI_Comm const |
comm | ) |
|
Sets the communicator.
- Parameters
-
[in] | comm | the MPI communicator |
◆ setSubComm()
void geosx::SuiteSparse::setSubComm |
( |
MPI_Comm const |
subComm | ) |
|
Sets the subcommunicator.
- Parameters
-
[in] | subComm | the MPI subcommunicator |
◆ setSubCommWorkingRank()
void geosx::SuiteSparse::setSubCommWorkingRank |
( |
int const |
subCommWorkingRank | ) |
|
Sets the working rank in the sub-communicator.
- Parameters
-
[in] | subCommWorkingRank | the working rank in the sub-communicator |
◆ setup()
int geosx::SuiteSparse::setup |
( |
| ) |
|
Factorizes a linear system with SuiteSparse.
- Returns
- info error code
◆ setupTime()
real64 geosx::SuiteSparse::setupTime |
( |
| ) |
const |
Provides the setup time.
- Returns
- the setup time
◆ setWorkingRank()
void geosx::SuiteSparse::setWorkingRank |
( |
int const |
workingRank | ) |
|
Sets the working rank.
- Parameters
-
[in] | workingRank | the working rank |
◆ solveTime()
real64 geosx::SuiteSparse::solveTime |
( |
| ) |
const |
Provides the solve time.
- Returns
- the solve time
◆ solveWorkingRank()
int geosx::SuiteSparse::solveWorkingRank |
( |
real64 * |
b, |
|
|
real64 * |
x, |
|
|
bool |
transpose = false |
|
) |
| |
Solves a linear system with SuiteSparse (matrix has already been factorized)
- Parameters
-
[in] | b | the right-hand side |
[out] | x | the solution |
[in] | transpose | whether to solve for the original or the transpose matrix |
- Returns
- info error code
◆ subCommWorkingRank()
int geosx::SuiteSparse::subCommWorkingRank |
( |
| ) |
const |
Returns the working rank in the sub-communicator.
- Returns
- the working rank in the sub-communicator
◆ values()
Returns the array with the matrix values.
- Returns
- the array with the matrix values
◆ workingRank()
int geosx::SuiteSparse::workingRank |
( |
| ) |
const |
Returns the working rank.
- Returns
- the working rank
The documentation for this class was generated from the following file: