12#ifndef ARCANE_MATRIX_OPERATIONS_H
13#define ARCANE_MATRIX_OPERATIONS_H
20#include "MatrixExpressionT.h"
35template <
class M1,
class M2>
44 const IndexedSpace& maps_from()
const {
return m_x.maps_from()+m_y.maps_from(); }
45 const IndexedSpace& maps_to()
const {
return m_x.maps_to()+m_y.maps_to(); }
54template<
class M1,
class M2>
60template<
class M1,
class M2>
61 MatrixLinComb<M1,M2> operator-(
const MatrixExpr<M1>& x,
const MatrixExpr<M2>& y)
63 return MatrixLinComb<M1,M2>(1, x, -1, y);
67MatrixLinComb<M1,M1> operator*(
double alpha,
const MatrixExpr<M1>& x)
69 return MatrixLinComb<M1,M1>(1, x, 0, x);
73template <
class M1,
class M2>
74 MatrixLinComb<M1,M2>::
75 MatrixLinComb(
double alpha,
const MatrixExpr<M1>& x,
76 double beta,
const MatrixExpr<M2>& y)
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.
Matrix Helper class to handle add and scalar multiply.