Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
matrix/Vector.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/* IndexedSpace.h (C) 2014 */
9/* */
10/* Space for linear algebra. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_VECTOR_H
13#define ARCANE_VECTOR_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17//#include "arcane/ArcaneTypes.h"
18//#include "arcane/matrix/MatrixExpressionT.h"
19
20#include "VectorExpressionT.h"
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25ARCANE_BEGIN_NAMESPACE
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
30
31
35class Vector: public VectorExpr<Vector>
36{
37 public:
38 Vector(const IndexedSpace& domain): m_domain(domain) {}
39 template <class V> Vector(const VectorExpr<V>& src) {}
40
41 ~Vector() {}
42
43 template <class V>
44 Vector& operator=(const VectorExpr<V>& src) { return *this;}
45
46 Real operator[](int i) const { return 0; }
47
48 const IndexedSpace& domain() const { return m_domain; }
49
50 private:
51 IndexedSpace m_domain;
52};
53
54
55
56/*---------------------------------------------------------------------------*/
57/*---------------------------------------------------------------------------*/
58
59ARCANE_END_NAMESPACE
60
61/*---------------------------------------------------------------------------*/
62/*---------------------------------------------------------------------------*/
63
64#endif // ARCANE_VECTOR_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.
Vector class, to be used by user.