12#ifndef ARCANE_VECTOR_OPERATIONS_H
13#define ARCANE_VECTOR_OPERATIONS_H
20#include "VectorExpressionT.h"
21#include "IndexedSpace.h"
36template <
class V1,
class V2>
47 Real operator[](
int i)
const {
return 0; }
55template<
class V1,
class V2>
62template<
class V1,
class V2>
63 VectorLinComb<V1,V2> operator-(
const VectorExpr<V1>& x,
64 const VectorExpr<V2>& y)
66 return VectorLinComb<V1,V2>(1, x, -1, y);
70VectorLinComb<V1,V1> operator*(
double alpha,
71 const VectorExpr<V1>& x)
73 return VectorLinComb<V1,V1>(alpha, x, 0, x);
77template <
class V1,
class V2>
78 VectorLinComb<V1,V2>::
79 VectorLinComb(
double alpha,
const VectorExpr<V1>& x,
80 double beta,
const VectorExpr<V2>& y)
87template <
class V1,
class V2>
89 VectorLinComb<V1,V2>::domain()
const {
90 return m_x.domain() + m_y.domain();
Indexed set/space to define matrix and vector support.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Class to inherite to perform matrix computations.
Vector Helper class to handle add and scalar multiply.