Template Numerical Library version\ main:bb09b17
|
Accessor for elements of lambda matrix. More...
#include <TNL/Matrices/LambdaMatrixElement.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__ | LambdaMatrixElement (const LambdaMatrixElement &el)=default |
Copy constructor. | |
__cuda_callable__ | LambdaMatrixElement (const RealType &value, const IndexType &rowIdx, const IndexType &columnIdx, const IndexType &localIdx) |
Constructor. | |
__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 row index. | |
__cuda_callable__ const RealType & | value () const |
Returns constant reference on matrix element value. | |
Protected Attributes | |
const IndexType | columnIdx |
const IndexType & | localIdx |
const IndexType & | rowIdx |
const RealType | value_ |
Accessor for elements of lambda matrix.
Real | is 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. |
|
default |
Copy constructor.
el | is the source matrix element. |
|
inlinenodiscard |
Returns constant reference on matrix element column index.
|
inlinenodiscard |
Returns constant reference on the rank of the non-zero matrix element in the row.
|
inlinenodiscard |
Returns constant reference on matrix element row index.
|
inlinenodiscard |
Returns constant reference on matrix element value.