24#ifndef _GEMA_HYPRE_MATRIX_H_
25#define _GEMA_HYPRE_MATRIX_H_
29#include <HYPRE_parcsr_ls.h>
31typedef HYPRE_IJMatrix HYPRE_MATRIX;
42 HYPRE_MATRIX
hypre()
const {
return _hypreMat; }
44 virtual void clear(
bool keepSparseLayout);
45 virtual void clearLineAndColumnSet(
const QVector<int>& indexList,
bool setDiagonal,
bool keepSparseLayout);
46 virtual void ensureDiagonal();
47 bool setMatrixValues();
55 HYPRE_MATRIX _hypreMat;
Definition hypreMatrix.h:35
virtual void matrixLayoutReady()
Allocates space for matrix values and build the HYPRE wrapper over matrix vectors.
Definition hypreMatrix.cpp:65
HYPRE_MATRIX hypre() const
Returns the HYPRE matrix wrapped by this class.
Definition hypreMatrix.h:42
virtual ~HypreMatrix()
Destructor.
Definition hypreMatrix.cpp:55
HypreMatrix(int nlin, const HypreMatrix *sharedLayout, GmSparseMatrixOptions options)
Constructor for the square matrix used by the HYPRE solver. If sharedLayout is different from NULL,...
Definition hypreMatrix.cpp:40