20 #ifndef GEOS_LINEARALGEBRA_INTERFACES_EPETRAEXPORT_HPP_
21 #define GEOS_LINEARALGEBRA_INTERFACES_EPETRAEXPORT_HPP_
80 template<
typename OFFSET_TYPE,
typename COLUMN_TYPE >
121 std::unique_ptr< Epetra_Map > m_serialMap;
124 std::unique_ptr< Epetra_Import > m_serialImport;
Facilitates exporting Epetra matrix and associated vector objects (either in parallel or serial).
void exportCRS(EpetraMatrix const &mat, arrayView1d< OFFSET_TYPE > const &rowOffsets, arrayView1d< COLUMN_TYPE > const &colIndices, arrayView1d< real64 > const &values) const
Export the matrix into CRS arrays provided by the user.
void importVector(arrayView1d< const real64 > const &values, EpetraVector &vec) const
Import the target vector from an array provided by the user.
~EpetraExport()
Destructor.
EpetraExport(EpetraMatrix const &mat, integer targetRank)
Single-rank export constructor.
EpetraExport()
Parallel export constructor.
void exportVector(EpetraVector const &vec, arrayView1d< real64 > const &values) const
Export the target vector into an array provided by the user.
Wrapper class for Epetra's CrsMatrix.
Wrapper around Trilinos' Epetra_Vector object.
ArrayView< T, 1 > arrayView1d
Alias for 1D array view.
std::int32_t integer
Signed integer type.