36 #ifndef EXPRESSION_DOT_HPP 37 #define EXPRESSION_DOT_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> 48 namespace ExpressionAssembly
70 template <
typename LExpressionType,
typename RExpressionType>
71 class ExpressionDot :
public ExpressionBase< ExpressionDot<LExpressionType, RExpressionType> >
79 typedef ExpressionBase< ExpressionDot <LExpressionType, RExpressionType> > base_Type;
88 ExpressionDot (
const LExpressionType& l,
const RExpressionType& r)
89 : base_Type(), M_l (l), M_r (r) {}
92 ExpressionDot (
const ExpressionDot<LExpressionType, RExpressionType>& expression)
93 : base_Type(), M_l (expression.M_l), M_r (expression.M_r) {}
105 static void display (std::ostream& out = std::cout)
107 LExpressionType::display (out);
109 RExpressionType::display (out);
119 const LExpressionType& left()
const 125 const RExpressionType& right()
const 171 template<
typename LExpressionType,
typename RExpressionType >
172 ExpressionDot<LExpressionType, RExpressionType>
175 return ExpressionDot<LExpressionType, RExpressionType> (l.cast(), r.cast() );
179 template<
typename LExpressionType >
180 ExpressionDot<LExpressionType, ExpressionScalar >
183 return ExpressionDot<LExpressionType, ExpressionScalar> (l.cast(), ExpressionScalar (r) );
186 template<
typename RExpressionType >
187 ExpressionDot<ExpressionScalar, RExpressionType>
190 return ExpressionDot<ExpressionScalar, RExpressionType> (ExpressionScalar (l), r.cast() );
194 template<
typename RExpressionType ,
UInt Vdim>
195 ExpressionDot<ExpressionVector<Vdim>, RExpressionType>
198 return ExpressionDot<ExpressionVector<Vdim>, RExpressionType> (ExpressionVector<Vdim> (l), r.cast() );
201 template<
typename LExpressionType,
UInt Vdim >
202 ExpressionDot<LExpressionType, ExpressionVector<Vdim> >
205 return ExpressionDot<LExpressionType, ExpressionVector<Vdim> > (l.cast(), ExpressionVector<Vdim> (r) );
void updateInverseJacobian(const UInt &iQuadPt)
double Real
Generic real data.
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)