12#ifndef ARCANE_UTILS_NUMMATRIXDATAVIEW_H
13#define ARCANE_UTILS_NUMMATRIXDATAVIEW_H
17#include "arcane/utils/NumMatrix.h"
32template <
typename DataType_,
int Row,
int Column>
33class NumMatrixDataViewGetter
46 explicit ARCCORE_HOST_DEVICE NumMatrixDataViewGetter(
const NumMatrixType* ptr)
71template <
typename DataType_,
int Row,
int Column>
72class NumMatrixDataViewGetterSetter
73:
public DataViewGetterSetter<NumMatrix<DataType_, Row, Column>>
75 using BaseClass = DataViewGetterSetter<NumMatrix<DataType_, Row, Column>>;
86 explicit ARCCORE_HOST_DEVICE NumMatrixDataViewGetterSetter(
NumMatrixType* ptr)
94 BaseClass::operator=(v);
98 void fill(
const DataType_& v)
100 this->m_ptr->fill(v);
Classe pour accéder à un élément d'une vue en lecture.
Vue modifiable pour un NumMatrix<DataType_,Row,Column>.
NumMatrix< DataType, Row, Column > NumMatrixType
DataViewGetterSetter< DataType > MatrixElemenAccessor
const NumMatrixType & AccessorReturnType
DataViewGetter< DataType > MatrixElemenAccessor
NumMatrix< DataType, Row, Column > NumMatrixType
Petite matrice de taille fixe contenant RowSize lignes et ColumnSize colonnes.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --