OGS
NumLib::MatrixProvider Class Referenceabstract

Detailed Description

Manages storage for matrices.

This the matrix-analog of VectorProvider. The same notes apply to this class.

Definition at line 23 of file MatrixProvider.h.

#include <MatrixProvider.h>

Inheritance diagram for NumLib::MatrixProvider:
[legend]

Public Member Functions

virtual GlobalMatrixgetMatrix (std::size_t &id)=0
 Get an uninitialized matrix with the given id.
virtual GlobalMatrixgetMatrix (MathLib::MatrixSpecifications const &ms, std::size_t &id)=0
virtual void releaseMatrix (GlobalMatrix const &A)=0
virtual ~MatrixProvider ()=default

Constructor & Destructor Documentation

◆ ~MatrixProvider()

virtual NumLib::MatrixProvider::~MatrixProvider ( )
virtualdefault

Member Function Documentation

◆ getMatrix() [1/2]

virtual GlobalMatrix & NumLib::MatrixProvider::getMatrix ( MathLib::MatrixSpecifications const & ms,
std::size_t & id )
pure virtual

Get a matrix according to the given specifications in the storage of the matrix with the given id.

Implemented in NumLib::SimpleMatrixVectorProvider.

◆ getMatrix() [2/2]

virtual GlobalMatrix & NumLib::MatrixProvider::getMatrix ( std::size_t & id)
pure virtual

Get an uninitialized matrix with the given id.

Implemented in NumLib::SimpleMatrixVectorProvider.

◆ releaseMatrix()

virtual void NumLib::MatrixProvider::releaseMatrix ( GlobalMatrix const & A)
pure virtual

Release the given matrix.

Precondition
A must have been acquired before, i.e., you must not call this method twice in a row in the same A!

Implemented in NumLib::SimpleMatrixVectorProvider.


The documentation for this class was generated from the following file: