Template Numerical Library version\ main:bb09b17
|
Accessor for sparse matrix elements. More...
#include <TNL/Matrices/SparseMatrixElement.h>
Public Types | |
using | IndexType = Index |
Type of matrix elements column indexes. | |
using | RealType = Real |
Type of matrix elements values. | |
Public Member Functions | |
__cuda_callable__ | SparseMatrixElement (RealType &value, IndexType rowIdx, IndexType &columnIdx, IndexType localIdx) |
Constructor. | |
__cuda_callable__ IndexType & | columnIndex () |
Returns reference on matrix element column index. | |
__cuda_callable__ const IndexType & | columnIndex () const |
Returns constant reference on matrix element column index. | |
__cuda_callable__ const IndexType & | localIndex () const |
Returns constant reference on the rank of the non-zero matrix element in the row. | |
__cuda_callable__ const IndexType & | rowIndex () const |
Returns constant reference on matrix element column index. | |
__cuda_callable__ RealType & | value () |
Returns reference on matrix element value. | |
__cuda_callable__ const RealType & | value () const |
Returns constant reference on matrix element value. | |
Static Public Member Functions | |
static constexpr bool | isBinary () |
Test of binary matrix type. | |
Protected Attributes | |
IndexType & | columnIdx |
IndexType | localIdx |
IndexType | rowIdx |
RealType & | value_ |
Accessor for sparse matrix elements.
Real | is a type of matrix elements values. |
Index | is a type of matrix elements column indexes. |
|
inline |
Constructor.
value | is matrix element value. |
rowIdx | is row index of the matrix element. |
columnIdx | is a column index of the matrix element. |
localIdx | is the rank of the non-zero elements in the matrix row. |
|
inlinenodiscard |
Returns reference on matrix element column index.
|
inlinenodiscard |
Returns constant reference on matrix element column index.
|
inlinestaticnodiscardconstexpr |
Test of binary matrix type.
|
inlinenodiscard |
Returns constant reference on the rank of the non-zero matrix element in the row.
|
inlinenodiscard |
Returns constant reference on matrix element column index.
|
inlinenodiscard |
Returns reference on matrix element value.
|
inlinenodiscard |
Returns constant reference on matrix element value.