OGS
MatrixProvider.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include <cstddef>
7
9
10namespace NumLib
11{
17{
18public:
20 virtual GlobalMatrix& getMatrix(std::size_t& id) = 0;
21
25 std::size_t& id) = 0;
26
31 virtual void releaseMatrix(GlobalMatrix const& A) = 0;
32
33 virtual ~MatrixProvider() = default;
34};
35} // namespace NumLib
MathLib::EigenMatrix GlobalMatrix
virtual GlobalMatrix & getMatrix(MathLib::MatrixSpecifications const &ms, std::size_t &id)=0
virtual void releaseMatrix(GlobalMatrix const &A)=0
virtual ~MatrixProvider()=default
virtual GlobalMatrix & getMatrix(std::size_t &id)=0
Get an uninitialized matrix with the given id.