19 #ifndef GEOSX_LINEARALGEBRA_INTERFACES_PETSCSUITESPARSE_HPP_ 20 #define GEOSX_LINEARALGEBRA_INTERFACES_PETSCSUITESPARSE_HPP_ 35 SuiteSparse & SSData );
46 PetscVector
const & b,
constexpr void transpose(DST_MATRIX &&LVARRAY_RESTRICT_REF dstMatrix, SRC_MATRIX const &LVARRAY_RESTRICT_REF srcMatrix)
Store the transpose of the NxM matrix srcMatrix in dstMatrix.
void ConvertPetscToSuiteSparseMatrix(PetscMatrix const &matrix, SuiteSparse &SSData)
Converts a matrix from Petsc to SuiteSparse format.
double real64
64-bit floating point type.
real64 PetscSuiteSparseCond(PetscMatrix const &matrix, SuiteSparse &SSData)
Computes an accurate condition number (time consuming function!!!)
int SuiteSparseSolve(SuiteSparse &SSData, HypreVector const &b, HypreVector &x, bool transpose=false)
Solves a linear system with SuiteSparse (matrix has already been factorized)