19 #ifndef GEOSX_LINEARALGEBRA_INTERFACES_EPETRASUITESPARSE_HPP_ 20 #define GEOSX_LINEARALGEBRA_INTERFACES_EPETRASUITESPARSE_HPP_ 26 #include <Epetra_FECrsGraph.h> 40 Epetra_Map * & serialMap,
41 Epetra_Import * & importToSerial );
54 Epetra_Map
const * serialMap,
55 Epetra_Import
const * importToSerial,
56 EpetraVector
const & b,
69 Epetra_Map
const * serialMap,
70 Epetra_Import
const * importToSerial,
71 SuiteSparse & SSData );
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 ConvertEpetraToSuiteSparseMatrix(EpetraMatrix const &matrix, SuiteSparse &SSData, Epetra_Map *&serialMap, Epetra_Import *&importToSerial)
Converts a matrix from Epetra to SuiteSparse format.
double real64
64-bit floating point type.
real64 EpetraSuiteSparseCond(EpetraMatrix const &matrix, Epetra_Map const *serialMap, Epetra_Import const *importToSerial, 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)