Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
matrix_test.cc
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//#include <arcane/matrix/Matrix.h>
8//#include <arcane/matrix/MatrixOperationsT.h>
9
10#include "Matrix.h"
11#include "MatrixOperationsT.h"
12
13#include "Vector.h"
14#include "VectorOperationsT.h"
15
16ARCANE_BEGIN_NAMESPACE
17
18Vector vector_test()
19{
20 IndexedSpace i;
21 IndexedSpace j;
22
23 Vector x(i), y(j);
24
25 Vector z = 3.14*x-y;
26
27 return z;
28}
29
30Matrix matrix_test()
31{
32 Matrix a,b;
33 Matrix c = a + 2.05*b;
34
35 return c;
36}
37
38
39/*---------------------------------------------------------------------------*/
40/*---------------------------------------------------------------------------*/
41
42ARCANE_END_NAMESPACE
43
44/*---------------------------------------------------------------------------*/
45/*---------------------------------------------------------------------------*/
46
47int main(int argc, char** argv)
48{
49 arcane::vector_test();
50 //arcane::matrix_test();
51 return 0;
52}
53