Template Numerical Library version\ main:4e58ea6
Loading...
Searching...
No Matches
TNL::Matrices::LambdaMatrixElement< Real, Index > Class Template Reference

Accessor for elements of lambda matrix. More...

#include <TNL/Matrices/LambdaMatrixElement.h>

Collaboration diagram for TNL::Matrices::LambdaMatrixElement< Real, Index >:

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 IndexTypecolumnIndex () const
 Returns constant reference on matrix element column index.
 
__cuda_callable__ const IndexTypelocalIndex () const
 Returns constant reference on the rank of the non-zero matrix element in the row.
 
__cuda_callable__ const IndexTyperowIndex () const
 Returns constant reference on matrix element row index.
 
__cuda_callable__ const RealTypevalue () const
 Returns constant reference on matrix element value.
 

Protected Attributes

const IndexType columnIdx
 
const IndexTypelocalIdx
 
const IndexTyperowIdx
 
const RealType value_
 

Detailed Description

template<typename Real, typename Index>
class TNL::Matrices::LambdaMatrixElement< Real, Index >

Accessor for elements of lambda matrix.

Template Parameters
Realis type of matrix elements values.
Indexis a type of matrix elements column indexes.

Constructor & Destructor Documentation

◆ LambdaMatrixElement() [1/2]

template<typename Real , typename Index >
__cuda_callable__ TNL::Matrices::LambdaMatrixElement< Real, Index >::LambdaMatrixElement ( const RealType & value,
const IndexType & rowIdx,
const IndexType & columnIdx,
const IndexType & localIdx )
inline

Constructor.

Parameters
valueis matrix element value.
rowIdxis row index of the matrix element.
columnIdxis a column index of the matrix element.
localIdxis the rank of the non-zero elements in the matrix row.

◆ LambdaMatrixElement() [2/2]

template<typename Real , typename Index >
__cuda_callable__ TNL::Matrices::LambdaMatrixElement< Real, Index >::LambdaMatrixElement ( const LambdaMatrixElement< Real, Index > & el)
default

Copy constructor.

Parameters
elis the source matrix element.

Member Function Documentation

◆ columnIndex()

template<typename Real , typename Index >
__cuda_callable__ const IndexType & TNL::Matrices::LambdaMatrixElement< Real, Index >::columnIndex ( ) const
inlinenodiscard

Returns constant reference on matrix element column index.

Returns
constant reference on matrix element column index.

◆ localIndex()

template<typename Real , typename Index >
__cuda_callable__ const IndexType & TNL::Matrices::LambdaMatrixElement< Real, Index >::localIndex ( ) const
inlinenodiscard

Returns constant reference on the rank of the non-zero matrix element in the row.

Returns
constant reference on the rank of the non-zero matrix element in the row.

◆ rowIndex()

template<typename Real , typename Index >
__cuda_callable__ const IndexType & TNL::Matrices::LambdaMatrixElement< Real, Index >::rowIndex ( ) const
inlinenodiscard

Returns constant reference on matrix element row index.

Returns
constant reference on matrix element row index.

◆ value()

template<typename Real , typename Index >
__cuda_callable__ const RealType & TNL::Matrices::LambdaMatrixElement< Real, Index >::value ( ) const
inlinenodiscard

Returns constant reference on matrix element value.

Returns
constant reference on matrix element value.

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