AMDiS 2.10
The Adaptive Multi-Dimensional Simulation Toolbox
MatrixSize.hpp
1#pragma once
2
3#include <functional>
4#include <memory>
5
6#include <amdis/common/Index.hpp>
7#include <amdis/linearalgebra/SymmetryStructure.hpp>
8
9namespace AMDiS
10{
12 {
13 public:
14 template <class RowBasis, class ColBasis>
15 MatrixSize(RowBasis const& rowBasis, ColBasis const& colBasis,
16 SymmetryStructure symmetry = SymmetryStructure::unknown)
17 : rows_(rowBasis.dimension())
18 , cols_(colBasis.dimension())
19 {}
20
22 std::size_t rows() const
23 {
24 return rows_;
25 }
26
28 std::size_t cols() const
29 {
30 return cols_;
31 }
32
33 private:
34 std::size_t rows_;
35 std::size_t cols_;
36 };
37
38} // end namespace AMDiS
Definition: MatrixSize.hpp:12
std::size_t rows() const
Number of rows in the matrix.
Definition: MatrixSize.hpp:22
std::size_t cols() const
Number of columns in the matrix.
Definition: MatrixSize.hpp:28