Template Numerical Library version\ main:4e58ea6
|
RowView is a simple structure for accessing rows of multidiagonal matrix. More...
#include <TNL/Matrices/MultidiagonalMatrixRowView.h>
Public Types | |
using | ConstDiagonalsOffsetsView = typename DiagonalsOffsetsView::ConstViewType |
Type of constant container view used for storing the column indexes of the matrix elements. | |
using | ConstIteratorType = MatrixRowViewIterator< ConstRowView > |
Type of constant iterator for the matrix row. | |
using | ConstRowView = MultidiagonalMatrixRowView< ConstValuesViewType, IndexerType, ConstDiagonalsOffsetsView > |
Type of constant sparse matrix row view. | |
using | ConstValuesViewType = typename ValuesViewType::ConstViewType |
Type of constant container view used for storing the matrix elements values. | |
using | DiagonalsOffsetsView = DiagonalsOffsetsView_ |
Type of a container view holding offsets of diagonals of multidiagonal matrix. | |
using | IndexerType = Indexer |
Type of object responsible for indexing and organization of matrix elements. | |
using | IndexType = typename ValuesView::IndexType |
The type used for matrix elements indexing. | |
using | IteratorType = MatrixRowViewIterator< RowView > |
Type of iterator for the matrix row. | |
using | MatrixElementType = MultidiagonalMatrixElement< RealType, IndexType > |
The type of related matrix element. | |
using | RealType = typename ValuesView::RealType |
The type of matrix elements. | |
using | RowView = MultidiagonalMatrixRowView< ValuesViewType, IndexerType, DiagonalsOffsetsView > |
Type of constant sparse matrix row view. | |
using | ValuesViewType = ValuesView |
Type of container view used for storing the matrix elements values. | |
Public Member Functions | |
__cuda_callable__ | MultidiagonalMatrixRowView (IndexType rowIdx, const DiagonalsOffsetsView &diagonalsOffsets, const ValuesViewType &values, const IndexerType &indexer) |
Constructor with all necessary data. | |
__cuda_callable__ IteratorType | begin () |
Returns iterator pointing at the beginning of the matrix row. | |
__cuda_callable__ ConstIteratorType | cbegin () const |
Returns constant iterator pointing at the beginning of the matrix row. | |
__cuda_callable__ ConstIteratorType | cend () const |
Returns constant iterator pointing at the end of the matrix row. | |
__cuda_callable__ IteratorType | end () |
Returns iterator pointing at the end of the matrix row. | |
__cuda_callable__ IndexType | getColumnIndex (IndexType localIdx) const |
Computes column index of matrix element on given subdiagonal. | |
__cuda_callable__ IndexType | getRowIndex () const |
Returns the matrix row index. | |
__cuda_callable__ IndexType | getSize () const |
Returns number of diagonals of the multidiagonal matrix. | |
__cuda_callable__ RealType & | getValue (IndexType localIdx) |
Returns value of matrix element on given subdiagonal. | |
__cuda_callable__ const RealType & | getValue (IndexType localIdx) const |
Returns value of matrix element on given subdiagonal. | |
__cuda_callable__ void | setElement (IndexType localIdx, const RealType &value) |
Changes value of matrix element on given subdiagonal. | |
Protected Attributes | |
DiagonalsOffsetsView | diagonalsOffsets |
Indexer | indexer |
IndexType | rowIdx |
ValuesViewType | values |
RowView is a simple structure for accessing rows of multidiagonal matrix.
ValuesView | is a vector view storing the matrix elements values. |
Indexer | is type of object responsible for indexing and organization of matrix elements. |
DiagonalsOffsetsView_ | is a container view holding offsets of diagonals of multidiagonal matrix. |
See MultidiagonalMatrix and MultidiagonalMatrixView.
__cuda_callable__ TNL::Matrices::MultidiagonalMatrixRowView< ValuesView, Indexer, DiagonalsOffsetsView >::MultidiagonalMatrixRowView | ( | IndexType | rowIdx, |
const DiagonalsOffsetsView & | diagonalsOffsets, | ||
const ValuesViewType & | values, | ||
const IndexerType & | indexer ) |
Constructor with all necessary data.
rowIdx | is index of the matrix row this RowView refer to. |
diagonalsOffsets | is a vector view holding offsets of matrix diagonals, |
values | is a vector view holding values of matrix elements. |
indexer | is object responsible for indexing and organization of matrix elements |
|
nodiscard |
Returns iterator pointing at the beginning of the matrix row.
|
nodiscard |
Returns constant iterator pointing at the beginning of the matrix row.
|
nodiscard |
Returns constant iterator pointing at the end of the matrix row.
|
nodiscard |
Returns iterator pointing at the end of the matrix row.
|
nodiscard |
Computes column index of matrix element on given subdiagonal.
localIdx | is an index of the subdiagonal. |
|
nodiscard |
Returns the matrix row index.
|
nodiscard |
Returns number of diagonals of the multidiagonal matrix.
|
nodiscard |
Returns value of matrix element on given subdiagonal.
localIdx | is an index of the subdiagonal. |
|
nodiscard |
Returns value of matrix element on given subdiagonal.
localIdx | is an index of the subdiagonal. |
__cuda_callable__ void TNL::Matrices::MultidiagonalMatrixRowView< ValuesView, Indexer, DiagonalsOffsetsView >::setElement | ( | IndexType | localIdx, |
const RealType & | value ) |
Changes value of matrix element on given subdiagonal.
localIdx | is an index of the matrix subdiagonal. |
value | is the new value of the matrix element. |