Dune Core Modules (2.9.1)
bdmatrix.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
Implementation of the BCRSMatrix class.
Helper functions for determining the vector/matrix block level.
void endrowsizes()
indicate that size of all rows is defined
Definition: bcrsmatrix.hh:1149
void setrowsize(size_type i, size_type s)
Set number of indices in row i to s.
Definition: bcrsmatrix.hh:1117
@ random
Build entries randomly.
Definition: bcrsmatrix.hh:530
void addindex(size_type row, size_type col)
add index (row,col) to the matrix
Definition: bcrsmatrix.hh:1191
void endindices()
indicate that all indices are defined, check consistency
Definition: bcrsmatrix.hh:1248
size_type N() const
number of rows (counted in blocks)
Definition: bcrsmatrix.hh:1972
void setSize(size_type rows, size_type columns, size_type nnz=0)
Set the size of the matrix.
Definition: bcrsmatrix.hh:861
BCRSMatrix & operator=(const BCRSMatrix &Mat)
assignment
Definition: bcrsmatrix.hh:911
typename Imp::BlockTraits< B >::field_type field_type
export the type representing the field
Definition: bdmatrix.hh:39
A::size_type size_type
implement row_type with compressed vector
Definition: bdmatrix.hh:51
BDMatrix(std::initializer_list< B > const &list)
Construct from a std::initializer_list.
Definition: bdmatrix.hh:76
B block_type
export the type representing the components
Definition: bdmatrix.hh:42
void solve(V &x, const V &rhs) const
Solve the system Ax=b in O(n) time.
Definition: bdmatrix.hh:120
BDMatrix & operator=(const BDMatrix &other)
assignment
Definition: bdmatrix.hh:103
static constexpr unsigned int blocklevel
increment block level counter
Definition: bdmatrix.hh:55
void setSize(size_type size)
Resize the matrix. Invalidates the content!
Definition: bdmatrix.hh:85
Utilities for reduction like operations on ranges.
Implements a scalar matrix view wrapper around an existing scalar.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 21, 23:30, 2024)