Reference documentation for deal.II version 9.6.0
|
#include <deal.II/lac/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 |
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 > |
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 1552 of file trilinos_tpetra_sparse_matrix.h.
using LinearAlgebra::TpetraWrappers::SparseMatrixIterators::Iterator< Number, MemorySpace, Constness >::size_type = ::types::global_dof_index |
Declare type for container size.
Definition at line 1558 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 1564 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 1570 of file trilinos_tpetra_sparse_matrix.h.
using LinearAlgebra::TpetraWrappers::SparseMatrixIterators::Iterator< Number, MemorySpace, Constness >::MatrixType |
Typedef for the matrix type (including constness) we are to operate on.
Definition at line 1576 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 2217 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Copy constructor with optional change of constness.
Definition at line 2227 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Prefix increment.
Definition at line 2236 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Postfix increment.
Definition at line 2265 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Dereferencing operator.
Definition at line 2276 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Dereferencing operator.
Definition at line 2285 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Comparison. True, if both iterators point to the same matrix position.
Definition at line 2295 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Inverse of ==
.
Definition at line 2307 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 2317 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Comparison operator. The opposite of the previous operator
Definition at line 2330 of file trilinos_tpetra_sparse_matrix.h.
|
friend |
Definition at line 1661 of file trilinos_tpetra_sparse_matrix.h.
|
friend |
Definition at line 1661 of file trilinos_tpetra_sparse_matrix.h.
|
private |
Store an object of the accessor class.
Definition at line 1661 of file trilinos_tpetra_sparse_matrix.h.