Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
MatrixExpressionT.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 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/* MatrixExpressionT.h (C) 2014 */
9/* */
10/* Virtual Matrix to perform arithmetic operations. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_MATRIX_EXPRESSION_H
13#define ARCANE_MATRIX_EXPRESSION_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17//#include "arcane/ArcaneTypes.h"
18//#include "arcane/matrix/IndexedSpace.h"
19
20#include "IndexedSpace.h"
21#include "fake.h"
22
23/*---------------------------------------------------------------------------*/
24/*---------------------------------------------------------------------------*/
25
26ARCANE_BEGIN_NAMESPACE
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
30
31
36template <class M>
38{
39 public:
40
41 operator M&() { return *static_cast< M*>(this); }
42 operator M const&() const { return *static_cast<const M*>(this); }
43
44 const IndexedSpace& maps_from() const
45 { return static_cast<M const&>(*this).maps_from(); }
46
47 const IndexedSpace& maps_to() const
48 { return static_cast<M const&>(*this).maps_to(); }
49
50
51 private:
52
53};
54
55
56
57/*---------------------------------------------------------------------------*/
58/*---------------------------------------------------------------------------*/
59
60ARCANE_END_NAMESPACE
61
62/*---------------------------------------------------------------------------*/
63/*---------------------------------------------------------------------------*/
64
65#endif // ARCANE_MATRIX_EXPRESSION_H
Indexed set/space to define matrix and vector support.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Class to inherite to perform matrix computations.