![]() |
deal.II version GIT relicensing-2622-g33d355461e 2025-02-12 07:20:00+00:00
|
#include <deal.II/lac/trilinos_tpetra_sparse_matrix.h>
Public Types | |
using | MatrixType = const SparseMatrix< Number, MemorySpace > |
using | size_type = typename AccessorBase< Number, MemorySpace >::size_type |
Public Member Functions | |
Accessor (MatrixType *matrix, const size_type row, const size_type index) | |
template<bool Other> | |
Accessor (const Accessor< Number, MemorySpace, Other > &a) | |
Number | value () const |
size_type | row () const |
size_type | index () const |
size_type | column () const |
Protected Member Functions | |
void | visit_present_row () |
Protected Attributes | |
SparseMatrix< Number, MemorySpace > * | matrix |
size_type | a_row |
size_type | a_index |
std::shared_ptr< std::vector<::types::signed_global_dof_index > > | colnum_cache |
std::shared_ptr< std::vector< Number > > | value_cache |
The specialization for a const Accessor.
Definition at line 1412 of file trilinos_tpetra_sparse_matrix.h.
using LinearAlgebra::TpetraWrappers::SparseMatrixIterators::Accessor< Number, MemorySpace, true >::MatrixType = const SparseMatrix<Number, MemorySpace> |
Typedef for the type (including constness) of the matrix to be used here.
Definition at line 1420 of file trilinos_tpetra_sparse_matrix.h.
using LinearAlgebra::TpetraWrappers::SparseMatrixIterators::Accessor< Number, MemorySpace, true >::size_type = typename AccessorBase<Number, MemorySpace>::size_type |
Typedef for the size type of the matrix to be used here.
Definition at line 1425 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Constructor. Since we use accessors only for read access, a const matrix pointer is sufficient.
Definition at line 2077 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Copy constructor to get from a const or non-const accessor to a const accessor.
Definition at line 2091 of file trilinos_tpetra_sparse_matrix.h.
|
inline |
Value of this matrix entry.
Definition at line 2100 of file trilinos_tpetra_sparse_matrix.h.
|
inlineinherited |
Row number of the element represented by this object.
Definition at line 1987 of file trilinos_tpetra_sparse_matrix.h.
|
inlineinherited |
Index in row of the element represented by this object.
Definition at line 2005 of file trilinos_tpetra_sparse_matrix.h.
|
inlineinherited |
Column number of the element represented by this object.
Definition at line 1996 of file trilinos_tpetra_sparse_matrix.h.
|
protectedinherited |
Discard the old row caches (they may still be used by other accessors) and generate new ones for the row pointed to presently by this accessor.
Definition at line 2015 of file trilinos_tpetra_sparse_matrix.h.
|
mutableprotectedinherited |
Pointer to the matrix object. This object should be handled as a const pointer or non-const by the appropriate derived classes. In order to be able to implement both, it is not const here, so handle with care!
Definition at line 1338 of file trilinos_tpetra_sparse_matrix.h.
|
protectedinherited |
Current row number.
Definition at line 1342 of file trilinos_tpetra_sparse_matrix.h.
|
protectedinherited |
Current index in row.
Definition at line 1347 of file trilinos_tpetra_sparse_matrix.h.
|
protectedinherited |
Cache where we store the column indices of the present row. This is necessary, since Trilinos makes access to the elements of its matrices rather hard, and it is much more efficient to copy all column entries of a row once when we enter it than repeatedly asking Trilinos for individual ones. This also makes some sense since it is likely that we will access them sequentially anyway.
In order to make copying of iterators/accessor of acceptable performance, we keep a shared pointer to these entries so that more than one accessor can access this data if necessary.
Definition at line 1370 of file trilinos_tpetra_sparse_matrix.h.
|
protectedinherited |
Cache for the values of this row.
Definition at line 1375 of file trilinos_tpetra_sparse_matrix.h.