|
1 | 1 | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
|
2 | 2 | //-----------------------------------------------------------------------------
|
3 |
| -// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com) |
| 3 | +// Copyright 2000-2024 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com) |
4 | 4 | // See the top-level COPYRIGHT file for details.
|
5 | 5 | // SPDX-License-Identifier: Apache-2.0
|
6 | 6 | //-----------------------------------------------------------------------------
|
7 | 7 | /*---------------------------------------------------------------------------*/
|
8 |
| -/* NumArrayViews.h (C) 2000-2022 */ |
| 8 | +/* NumArrayViews.h (C) 2000-2024 */ |
9 | 9 | /* */
|
10 | 10 | /* Gestion des vues pour les 'NumArray' pour les accélérateurs. */
|
11 | 11 | /*---------------------------------------------------------------------------*/
|
@@ -196,6 +196,21 @@ viewIn(RunCommand& command, const NumArray<DataType, Extents, LayoutType>& v)
|
196 | 196 | /*---------------------------------------------------------------------------*/
|
197 | 197 | /*---------------------------------------------------------------------------*/
|
198 | 198 |
|
| 199 | +//! Vue en entrée sur un NumArray |
| 200 | +template <typename DataType, typename Extents, typename LayoutType = DefaultLayout> |
| 201 | +using NumArrayInView = NumArrayView<DataViewGetter<DataType>, Extents, LayoutType>; |
| 202 | + |
| 203 | +//! Vue en sortie sur un NumArray |
| 204 | +template <typename DataType, typename Extents, typename LayoutType = DefaultLayout> |
| 205 | +using NumArrayOutView = NumArrayView<DataViewSetter<DataType>, Extents, LayoutType>; |
| 206 | + |
| 207 | +//! Vue en entrée/sortie sur un NumArray |
| 208 | +template <typename DataType, typename Extents, typename LayoutType = DefaultLayout> |
| 209 | +using NumArrayInOutView = NumArrayView<DataViewGetterSetter<DataType>, Extents, LayoutType>; |
| 210 | + |
| 211 | +/*---------------------------------------------------------------------------*/ |
| 212 | +/*---------------------------------------------------------------------------*/ |
| 213 | + |
199 | 214 | } // End namespace Arcane::Accelerator
|
200 | 215 |
|
201 | 216 | /*---------------------------------------------------------------------------*/
|
|
0 commit comments