Template Numerical Library version\ main:bb09b17
Loading...
Searching...
No Matches
TNL::Matrices::MatrixRowViewIterator< RowView > Class Template Reference

Public Types

using IndexType = typename RowViewType::IndexType
 The type used for matrix elements indexing.
 
using MatrixElementType = typename RowView::MatrixElementType
 The type of related matrix element.
 
using RealType = typename RowViewType::RealType
 The type of matrix elements.
 
using RowViewType = RowView
 Type of SparseMatrixRowView.
 

Public Member Functions

__cuda_callable__ MatrixRowViewIterator (RowViewType &rowView, IndexType localIdx)
 
__cuda_callable__ bool operator!= (const MatrixRowViewIterator &other) const
 Comparison of two matrix row iterators.
 
__cuda_callable__ MatrixElementType operator* ()
 Dereference operator.
 
__cuda_callable__ MatrixElementType operator* () const
 Dereference operator for constant instances.
 
__cuda_callable__ MatrixRowViewIteratoroperator++ ()
 Increment operator.
 
__cuda_callable__ MatrixRowViewIteratoroperator-- ()
 Decrement operetor.
 
__cuda_callable__ bool operator== (const MatrixRowViewIterator &other) const
 Comparison of two matrix row iterators.
 

Static Public Member Functions

static constexpr bool isBinary ()
 Tells whether the parent matrix is a binary matrix.
 

Protected Attributes

IndexType localIdx = 0
 
RowViewTyperowView
 

Member Function Documentation

◆ isBinary()

template<typename RowView >
static constexpr bool TNL::Matrices::MatrixRowViewIterator< RowView >::isBinary ( )
inlinestaticnodiscardconstexpr

Tells whether the parent matrix is a binary matrix.

Returns
true if the matrix is binary.

◆ operator!=()

template<typename RowView >
__cuda_callable__ bool TNL::Matrices::MatrixRowViewIterator< RowView >::operator!= ( const MatrixRowViewIterator< RowView > & other) const
nodiscard

Comparison of two matrix row iterators.

Parameters
otheris another matrix row iterator.
Returns
false if both iterators points at the same point of the same matrix, true otherwise.

◆ operator==()

template<typename RowView >
__cuda_callable__ bool TNL::Matrices::MatrixRowViewIterator< RowView >::operator== ( const MatrixRowViewIterator< RowView > & other) const
nodiscard

Comparison of two matrix row iterators.

Parameters
otheris another matrix row iterator.
Returns
true if both iterators points at the same point of the same matrix, false otherwise.

The documentation for this class was generated from the following files: