DUNE PDELab (git)
matrixindexset.hh
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
83 MatrixIndexSet(size_type maxVectorSize=defaultMaxVectorSize) noexcept : rows_(0), cols_(0), maxVectorSize_(maxVectorSize)
93 MatrixIndexSet(size_type rows, size_type cols, size_type maxVectorSize=defaultMaxVectorSize) : rows_(rows), cols_(cols), maxVectorSize_(maxVectorSize)
Stores the nonzero entries for creating a sparse matrix.
Definition: matrixindexset.hh:37
void resize(size_type rows, size_type cols)
Reset the size of an index set.
Definition: matrixindexset.hh:99
static constexpr size_type defaultMaxVectorSize
Default value for maxVectorSize.
Definition: matrixindexset.hh:76
size_type rows() const
Return the number of rows.
Definition: matrixindexset.hh:143
void exportIdx(MatrixType &matrix) const
Initializes a BCRSMatrix with the indices contained in this MatrixIndexSet.
Definition: matrixindexset.hh:200
void add(size_type row, size_type col)
Add an index to the index set.
Definition: matrixindexset.hh:112
MatrixIndexSet(size_type rows, size_type cols, size_type maxVectorSize=defaultMaxVectorSize)
Constructor setting the matrix size.
Definition: matrixindexset.hh:93
MatrixIndexSet(size_type maxVectorSize=defaultMaxVectorSize) noexcept
Constructor with custom maxVectorSize.
Definition: matrixindexset.hh:83
const auto & columnIndices(size_type row) const
Return column indices of entries in given row.
Definition: matrixindexset.hh:157
size_type rowsize(size_type row) const
Return the number of entries in a given row.
Definition: matrixindexset.hh:162
size_type size() const
Return the number of entries.
Definition: matrixindexset.hh:135
size_type cols() const
Return the number of columns.
Definition: matrixindexset.hh:146
constexpr std::bool_constant<((II==value)||...)> contains(std::integer_sequence< T, II... >, std::integral_constant< T, value >)
Checks whether or not a given sequence contains a value.
Definition: integersequence.hh:137
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)