Template Numerical Library version\ main:bb09b17
|
RowView is a simple structure for accessing rows of tridiagonal matrix. More...
#include <TNL/Matrices/TridiagonalMatrixRowView.h>
Public Types | |
using | ConstIteratorType = MatrixRowViewIterator< ConstRowView > |
Type of constant iterator for the matrix row. | |
using | ConstRowView = TridiagonalMatrixRowView< ConstValuesViewType, IndexerType > |
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 | 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 = TridiagonalMatrixRowView< ValuesViewType, IndexerType > |
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__ | TridiagonalMatrixRowView (IndexType rowIdx, 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 tridiagonal matrix which is three. | |
__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 | |
Indexer | indexer |
IndexType | rowIdx |
ValuesViewType | values |
RowView is a simple structure for accessing rows of tridiagonal matrix.
ValuesView | is a vector view storing the matrix elements values. |
Indexer | is type of object responsible for indexing and organization of matrix elements. |
See TridiagonalMatrix and TridiagonalMatrixView.
__cuda_callable__ TNL::Matrices::TridiagonalMatrixRowView< ValuesView, Indexer >::TridiagonalMatrixRowView | ( | IndexType | rowIdx, |
const ValuesViewType & | values, | ||
const IndexerType & | indexer ) |
Constructor with all necessary data.
rowIdx | is index of the matrix row this RowView refer to. |
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 tridiagonal matrix which is three.
|
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::TridiagonalMatrixRowView< ValuesView, Indexer >::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. |