|
dune-istl 2.12-git
|
Loading...
Searching...
No Matches
matrixindexset.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
203 MatrixIndexSet(size_type maxVectorSize=defaultMaxVectorSize) noexcept : rows_(0), cols_(0), maxVectorSize_(maxVectorSize)
213 MatrixIndexSet(size_type rows, size_type cols, size_type maxVectorSize=defaultMaxVectorSize) : rows_(rows), cols_(cols), maxVectorSize_(maxVectorSize)
int size() const
void clear()
void insert(const T &v)
static bool contains(const Type &attribute)
auto overload(F &&... f)
Stores the nonzero entries for creating a sparse matrix.
Definition matrixindexset.hh:181
void resize(size_type rows, size_type cols)
Reset the size of an index set.
Definition matrixindexset.hh:219
static constexpr size_type defaultMaxVectorSize
Default value for maxVectorSize.
Definition matrixindexset.hh:196
typename Impl::RowIndexSet::size_type size_type
Definition matrixindexset.hh:183
size_type rows() const
Return the number of rows.
Definition matrixindexset.hh:245
void exportIdx(MatrixType &matrix) const
Initializes a BCRSMatrix with the indices contained in this MatrixIndexSet.
Definition matrixindexset.hh:300
void add(size_type row, size_type col)
Add an index to the index set.
Definition matrixindexset.hh:232
MatrixIndexSet(size_type rows, size_type cols, size_type maxVectorSize=defaultMaxVectorSize)
Constructor setting the matrix size.
Definition matrixindexset.hh:213
MatrixIndexSet(size_type maxVectorSize=defaultMaxVectorSize) noexcept
Constructor with custom maxVectorSize.
Definition matrixindexset.hh:203
const auto & columnIndices(size_type row) const
Return column indices of entries in given row.
Definition matrixindexset.hh:259
size_type rowsize(size_type row) const
Return the number of entries in a given row.
Definition matrixindexset.hh:264
size_type size() const
Return the number of entries.
Definition matrixindexset.hh:237
size_type cols() const
Return the number of columns.
Definition matrixindexset.hh:248
T binary_search(T... args)
T contains(T... args)
T insert(T... args)
T lower_bound(T... args)
T visit(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8