Template Numerical Library version\ main:df396df
|
Accessor for dense matrix elements. More...
#include <TNL/Matrices/DenseMatrixElement.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__ | DenseMatrixElement (RealType &value, IndexType rowIdx, IndexType columnIdx, IndexType localIdx) |
Constructor. | |
__cuda_callable__ IndexType | columnIndex () const |
Returns the column index of the matrix element. | |
__cuda_callable__ IndexType | localIndex () const |
Returns the column index of the matrix element. | |
__cuda_callable__ IndexType | rowIndex () const |
Returns the row index of the matrix element. | |
__cuda_callable__ RealType & | value () |
Returns reference on matrix element value. | |
__cuda_callable__ const RealType & | value () const |
Returns constant reference on matrix element value. | |
Protected Attributes | |
const IndexType | columnIdx |
const IndexType | rowIdx |
RealType & | value_ |
Accessor for dense 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 column index of the matrix element as well. |
|
inlinenodiscard |
Returns reference on matrix element value.
|
inlinenodiscard |
Returns constant reference on matrix element value.