![]() |
deal.II version GIT relicensing-6834-g5b78e6bcdf 2026-10-01 11:20:01+00:00
|
#include <deal.II/lac/trilinos_tpetra_sparse_matrix.h>
This class acts as an iterator walking over the elements of Trilinos matrices. The implementation of this class is similar to the one for PETSc matrices.
Note that Trilinos stores the elements within each row in ascending order. This is opposed to the deal.II sparse matrix style where the diagonal element (if it exists) is stored before all other values, and the PETSc sparse matrices, where one can't guarantee a certain order of the elements.
Definition at line 1595 of file trilinos_tpetra_sparse_matrix.h.
Public Types | |
| using | size_type = ::types::global_dof_index |
| using | difference_type = ::types::global_dof_index |
| using | value_type = Number |
| using | MatrixType = typename Accessor< Number, MemorySpace, Constness >::MatrixType |
Public Member Functions | |
| Iterator (MatrixType *matrix, const size_type row, const size_type index) | |
| template<bool Other> | |
| Iterator (const Iterator< Number, MemorySpace, Other > &other) | |
| Iterator< Number, MemorySpace, Constness > & | operator++ () |
| Iterator< Number, MemorySpace, Constness > | operator++ (int) |
| const Accessor< Number, MemorySpace, Constness > & | operator* () const |
| const Accessor< Number, MemorySpace, Constness > * | operator-> () const |
| template<bool OtherConstness> | |
| bool | operator== (const Iterator< Number, MemorySpace, OtherConstness > &) const |
| template<bool OtherConstness> | |
| bool | operator!= (const Iterator< Number, MemorySpace, OtherConstness > &) const |
| template<bool OtherConstness> | |
| bool | operator< (const Iterator< Number, MemorySpace, OtherConstness > &) const |
| template<bool OtherConstness> | |
| bool | operator> (const Iterator< Number, MemorySpace, OtherConstness > &) const |
Static Public Member Functions | |
| static ::ExceptionBase & | ExcInvalidIndexWithinRow (size_type arg1, size_type arg2) |
Private Attributes | |
| Accessor< Number, MemorySpace, Constness > | accessor |
Friends | |
| class | Iterator< Number, MemorySpace, true > |
| class | Iterator< Number, MemorySpace, false > |
| using LinearAlgebra::TpetraWrappers::SparseMatrixIterators::Iterator< Number, MemorySpace, Constness >::size_type = ::types::global_dof_index |
Declare type for container size.
Definition at line 1601 of file trilinos_tpetra_sparse_matrix.h.
| using LinearAlgebra::TpetraWrappers::SparseMatrixIterators::Iterator< Number, MemorySpace, Constness >::difference_type = ::types::global_dof_index |
A type that denotes what data types is used to express the difference between two iterators.
Definition at line 1607 of file trilinos_tpetra_sparse_matrix.h.
| using LinearAlgebra::TpetraWrappers::SparseMatrixIterators::Iterator< Number, MemorySpace, Constness >::value_type = Number |
An alias for the type you get when you dereference an iterator of the current kind.
Definition at line 1613 of file trilinos_tpetra_sparse_matrix.h.
| using LinearAlgebra::TpetraWrappers::SparseMatrixIterators::Iterator< Number, MemorySpace, Constness >::MatrixType = typename Accessor<Number, MemorySpace, Constness>::MatrixType |
Typedef for the matrix type (including constness) we are to operate on.
Definition at line 1619 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Constructor. Create an iterator into the matrix matrix for the given row and the index within it.
Definition at line 2271 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Copy constructor with optional change of constness.
Definition at line 2281 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Prefix increment.
Definition at line 2290 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Postfix increment.
Definition at line 2319 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Dereferencing operator.
Definition at line 2330 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Dereferencing operator.
Definition at line 2339 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Comparison. True, if both iterators point to the same matrix position.
Definition at line 2349 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Inverse of ==.
Definition at line 2361 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Comparison operator. Result is true if either the first row number is smaller or if the row numbers are equal and the first index is smaller.
Definition at line 2371 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Comparison operator. The opposite of the previous operator
Definition at line 2384 of file trilinos_tpetra_sparse_matrix.h.
|
friend |
Definition at line 1704 of file trilinos_tpetra_sparse_matrix.h.
|
friend |
Definition at line 1704 of file trilinos_tpetra_sparse_matrix.h.
|
private |
Store an object of the accessor class.
Definition at line 1704 of file trilinos_tpetra_sparse_matrix.h.