36 #ifndef EXPRESSION_EMULT_HPP 37 #define EXPRESSION_EMULT_HPP 39 #include <lifev/core/LifeV.hpp> 41 #include <lifev/eta/expression/ExpressionBase.hpp> 42 #include <lifev/eta/expression/ExpressionScalar.hpp> 43 #include <lifev/eta/expression/ExpressionVector.hpp> 44 #include <lifev/eta/expression/ExpressionMatrix.hpp> 49 namespace ExpressionAssembly
71 template <
typename LExpressionType,
typename RExpressionType>
72 class ExpressionEmult :
public ExpressionBase< ExpressionEmult<LExpressionType, RExpressionType> >
80 typedef ExpressionBase< ExpressionEmult <LExpressionType, RExpressionType> > base_Type;
89 ExpressionEmult (
const LExpressionType& l,
const RExpressionType& r)
90 : base_Type(), M_l (l), M_r (r) {}
93 ExpressionEmult (
const ExpressionEmult<LExpressionType, RExpressionType>& expression)
94 : base_Type(), M_l (expression.M_l), M_r (expression.M_r) {}
106 static void display (std::ostream& out = std::cout)
108 LExpressionType::display (out);
110 RExpressionType::display (out);
120 const LExpressionType& left()
const 126 const RExpressionType& right()
const 172 template<
typename LExpressionType,
typename RExpressionType >
173 ExpressionEmult<LExpressionType, RExpressionType>
176 return ExpressionEmult<LExpressionType, RExpressionType> (l.cast(), r.cast() );
181 template<
typename RExpressionType ,
UInt Dim1,
UInt Dim2>
182 ExpressionEmult<ExpressionMatrix<Dim1, Dim2>, RExpressionType>
183 emult (
const MatrixSmall<Dim1, Dim2>& l,
const ExpressionBase<RExpressionType>& r)
185 return ExpressionEmult<ExpressionMatrix<Dim1, Dim2>, RExpressionType> (ExpressionMatrix<Dim1, Dim2> (l), r.cast() );
188 template<
typename LExpressionType,
UInt Dim1,
UInt Dim2 >
189 ExpressionEmult<LExpressionType, ExpressionMatrix<Dim1, Dim2> >
190 emult (
const ExpressionBase<LExpressionType>& l,
const MatrixSmall<Dim1, Dim2>& r)
192 return ExpressionEmult<LExpressionType, ExpressionMatrix<Dim1, Dim2> > (l.cast(), ExpressionMatrix<Dim1, Dim2> (r) );
void updateInverseJacobian(const UInt &iQuadPt)
class ExpressionBase Base class (static polymorphism, CRTP sense) for all the expressions used in ass...
uint32_type UInt
generic unsigned integer (used mainly for addressing)