Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
arcane/src/arcane/utils/Array.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2023 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* Array.cc (C) 2000-2024 */
9/* */
10/* Vecteur de données 1D. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/utils/Array.h"
15
16#include "arcane/utils/ArraySimdPadder.h"
17#include "arcane/utils/ArrayUtils.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28void applySimdPadding(Array<Int16>& ids)
29{
30 ArraySimdPadder::applySimdPadding(ids);
31}
32void applySimdPadding(Array<Int32>& ids)
33{
34 ArraySimdPadder::applySimdPadding(ids);
35}
36void applySimdPadding(Array<Int64>& ids)
37{
38 ArraySimdPadder::applySimdPadding(ids);
39}
40void applySimdPadding(Array<Real>& ids)
41{
42 ArraySimdPadder::applySimdPadding(ids);
43}
44
45/*---------------------------------------------------------------------------*/
46/*---------------------------------------------------------------------------*/
47
48void applySimdPadding(ArrayView<Int16> ids)
49{
50 ArraySimdPadder::applySimdPaddingView(Span<Int16>(ids));
51}
52void applySimdPadding(ArrayView<Int32> ids)
53{
54 ArraySimdPadder::applySimdPaddingView(Span<Int32>(ids));
55}
56void applySimdPadding(ArrayView<Int64> ids)
57{
58 ArraySimdPadder::applySimdPaddingView(Span<Int64>(ids));
59}
60void applySimdPadding(ArrayView<Real> ids)
61{
62 ArraySimdPadder::applySimdPaddingView(Span<Real>(ids));
63}
64
65/*---------------------------------------------------------------------------*/
66/*---------------------------------------------------------------------------*/
67
68void ArrayUtils::
69checkSimdPadding(ConstArrayView<Int32> ids)
70{
71 ArraySimdPadder::checkSimdPadding(Span<const Int32>(ids));
72}
73
74/*---------------------------------------------------------------------------*/
75/*---------------------------------------------------------------------------*/
76
77} // namespace Arcane
78
79/*---------------------------------------------------------------------------*/
80/*---------------------------------------------------------------------------*/
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-