deal.II version GIT relicensing-2250-g88cb8ba3cb 2024-12-13 12:20:00+00:00
|
#include <deal.II/lac/block_matrix_base.h>
Public Types | |
using | size_type = types::global_dof_index |
using | MatrixType = BlockMatrixType |
using | value_type = typename BlockMatrixType::value_type |
Public Member Functions | |
Accessor (BlockMatrixType *m, const size_type row, const size_type col) | |
size_type | row () const |
size_type | column () const |
value_type | value () const |
void | set_value (value_type newval) const |
unsigned int | block_row () const |
unsigned int | block_column () const |
Protected Member Functions | |
void | advance () |
bool | operator== (const Accessor &a) const |
Protected Attributes | |
BlockMatrixType * | matrix |
BlockMatrixType::BlockType::iterator | base_iterator |
unsigned int | row_block |
unsigned int | col_block |
Friends | |
template<typename > | |
class | ::MatrixIterator |
class | Accessor< BlockMatrixType, true > |
Block matrix accessor for non const matrices.
Definition at line 117 of file block_matrix_base.h.
using BlockMatrixIterators::Accessor< BlockMatrixType, false >::size_type = types::global_dof_index |
Declare type for container size.
Definition at line 123 of file block_matrix_base.h.
using BlockMatrixIterators::Accessor< BlockMatrixType, false >::MatrixType = BlockMatrixType |
Type of the matrix used in this accessor.
Definition at line 128 of file block_matrix_base.h.
using BlockMatrixIterators::Accessor< BlockMatrixType, false >::value_type = typename BlockMatrixType::value_type |
Typedef the value type of the matrix we point into.
Definition at line 133 of file block_matrix_base.h.
BlockMatrixIterators::Accessor< BlockMatrixType, false >::Accessor | ( | BlockMatrixType * | m, |
const size_type | row, | ||
const size_type | col | ||
) |
Constructor. Since we use accessors only for read access, a const matrix pointer is sufficient.
Place the iterator at the beginning of the given row of the matrix, or create the end pointer if row
equals the total number of rows in the matrix.
size_type BlockMatrixIterators::Accessor< BlockMatrixType, false >::row | ( | ) | const |
Row number of the element represented by this object.
size_type BlockMatrixIterators::Accessor< BlockMatrixType, false >::column | ( | ) | const |
Column number of the element represented by this object.
value_type BlockMatrixIterators::Accessor< BlockMatrixType, false >::value | ( | ) | const |
Value of the entry at the current position.
void BlockMatrixIterators::Accessor< BlockMatrixType, false >::set_value | ( | value_type | newval | ) | const |
Set new value.
|
protected |
Move ahead one element.
|
protected |
Compare this accessor with another one for equality.
|
inherited |
Block row of the element represented by this object.
|
inherited |
Block column of the element represented by this object.
Definition at line 193 of file block_matrix_base.h.
|
friend |
Definition at line 193 of file block_matrix_base.h.
|
protected |
The matrix accessed.
Definition at line 173 of file block_matrix_base.h.
|
protected |
Iterator of the underlying matrix class.
Definition at line 178 of file block_matrix_base.h.
|
protectedinherited |
Block row into which we presently point.
Definition at line 96 of file block_matrix_base.h.
|
protectedinherited |
Block column into which we presently point.
Definition at line 101 of file block_matrix_base.h.