Arcane  4.2.1.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::NumMatrixDataViewGetter< DataType_, Row, Column > Class Template Reference

Read-only view for a NumMatrix<DataType_,Row,Column>. More...

#include <arcane/utils/NumMatrixDataView.h>

Collaboration diagram for Arcane::NumMatrixDataViewGetter< DataType_, Row, Column >:

Public Types

using NumMatrixType = NumMatrix<DataType_, Row, Column>
 Type of the matrix.
using AccessorReturnType = const NumMatrixType&
 Accessor for the matrix.
using MatrixElemenAccessor = DataViewGetter<DataType_>
 Accessor for one element of the matrix.

Public Member Functions

__host__ __device__ NumMatrixDataViewGetter (const NumMatrixType *ptr)
constexpr operator AccessorReturnType () const noexcept

Static Public Member Functions

static constexpr __host__ __device__ AccessorReturnType build (const NumMatrixType *ptr)

Private Attributes

const NumMatrixTypem_ptr = nullptr

Detailed Description

template<typename DataType_, int Row, int Column>
class Arcane::NumMatrixDataViewGetter< DataType_, Row, Column >

Read-only view for a NumMatrix<DataType_,Row,Column>.

Definition at line 33 of file NumMatrixDataView.h.

Member Typedef Documentation

◆ AccessorReturnType

template<typename DataType_, int Row, int Column>
using Arcane::NumMatrixDataViewGetter< DataType_, Row, Column >::AccessorReturnType = const NumMatrixType&

Accessor for the matrix.

Definition at line 40 of file NumMatrixDataView.h.

◆ MatrixElemenAccessor

template<typename DataType_, int Row, int Column>
using Arcane::NumMatrixDataViewGetter< DataType_, Row, Column >::MatrixElemenAccessor = DataViewGetter<DataType_>

Accessor for one element of the matrix.

Definition at line 42 of file NumMatrixDataView.h.

◆ NumMatrixType

template<typename DataType_, int Row, int Column>
using Arcane::NumMatrixDataViewGetter< DataType_, Row, Column >::NumMatrixType = NumMatrix<DataType_, Row, Column>

Type of the matrix.

Definition at line 38 of file NumMatrixDataView.h.

Constructor & Destructor Documentation

◆ NumMatrixDataViewGetter()

template<typename DataType_, int Row, int Column>
__host__ __device__ Arcane::NumMatrixDataViewGetter< DataType_, Row, Column >::NumMatrixDataViewGetter ( const NumMatrixType * ptr)
inlineexplicit

Definition at line 46 of file NumMatrixDataView.h.

Member Function Documentation

◆ build()

template<typename DataType_, int Row, int Column>
constexpr __host__ __device__ AccessorReturnType Arcane::NumMatrixDataViewGetter< DataType_, Row, Column >::build ( const NumMatrixType * ptr)
inlinestaticconstexpr

Definition at line 52 of file NumMatrixDataView.h.

◆ operator AccessorReturnType()

template<typename DataType_, int Row, int Column>
Arcane::NumMatrixDataViewGetter< DataType_, Row, Column >::operator AccessorReturnType ( ) const
inlineconstexprnoexcept

Definition at line 59 of file NumMatrixDataView.h.

Member Data Documentation

◆ m_ptr

template<typename DataType_, int Row, int Column>
const NumMatrixType* Arcane::NumMatrixDataViewGetter< DataType_, Row, Column >::m_ptr = nullptr
private

Definition at line 63 of file NumMatrixDataView.h.


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