19 #ifndef GEOSX_LINEARALGEBRA_UTILITIES_BLOCKOPERATORWRAPPER_HPP_ 20 #define GEOSX_LINEARALGEBRA_UTILITIES_BLOCKOPERATORWRAPPER_HPP_ 38 template<
typename VECTOR,
typename OPERATOR = LinearOperator< VECTOR > >
55 :
Base( nRows, nCols )
85 this->
setPointer( blockRowIndex, blockColIndex, &op );
91 #endif //GEOSX_LINEARALGEBRA_UTILITIES_BLOCKOPERATORWRAPPER_HPP_ Abstract view of a block operator.
void setPointer(localIndex const blockRowIndex, localIndex const blockColIndex, OPERATOR *op)
Set/replace a pointer to a block.
BlockOperatorWrapper(localIndex const nRows, localIndex const nCols)
Create a vector wrapper of nBlocks blocks.
typename Base::Vector Vector
Alias for vector type.
std::ptrdiff_t localIndex
Local index type (for indexing objects within an MPI partition).
"Shallow" representation of a block operator.
virtual ~BlockOperatorWrapper() override=default
Destructor.