1#ifndef INCLUDED_HYPRE_MATRIX_ADAPTOR_H
2#define INCLUDED_HYPRE_MATRIX_ADAPTOR_H
4#include "AMP/matrices/data/MatrixData.h"
7#include "HYPRE_IJ_mv.h"
32 template<
class csr_data_type>
34 HYPRE_MemoryLocation memory_location );
struct hypre_IJMatrix_struct * HYPRE_IJMatrix
Wrapper class for constructing a hypre IJ matrix for use with solvers.
HYPRE_IJMatrix getHypreMatrix(void)
Returns the handle to the HYPRE IJMatrix.
HypreMatrixAdaptor()=delete
std::shared_ptr< MatrixData > d_csrdata_dev
Storage for migrated matrix data.
HYPRE_IJMatrix d_matrix
hypre IJ matrix that this class wraps
HypreMatrixAdaptor(std::shared_ptr< MatrixData >)
! Main constructor using a MatrixData object
void initializeHypreMatrix(std::shared_ptr< csr_data_type >, HYPRE_MemoryLocation memory_location)
Main internal routine for initializing the matrix.