36 #ifndef EXPRESSION_MATRIX_HPP 37 #define EXPRESSION_MATRIX_HPP 39 #include <lifev/core/LifeV.hpp> 41 #include <lifev/core/array/MatrixSmall.hpp> 43 #include <lifev/eta/expression/ExpressionBase.hpp> 50 namespace ExpressionAssembly
62 template <
UInt MatrixDim1,
UInt MatrixDim2 >
63 class ExpressionMatrix :
public ExpressionBase<ExpressionMatrix<MatrixDim1, MatrixDim2> >
79 ExpressionMatrix (
const MatrixSmall<MatrixDim1, MatrixDim2>& myValue)
80 : base_Type(), M_value (myValue) {}
83 ExpressionMatrix (
const ExpressionMatrix<MatrixDim1, MatrixDim2>& expr)
84 : base_Type(), M_value (expr.M_value) {}
87 ~ExpressionMatrix() {}
96 static void display (std::ostream& out = std::cout)
98 out <<
"matrix[" << MatrixDim1 <<
"][" << MatrixDim2 <<
"] ";
108 const MatrixSmall<MatrixDim1, MatrixDim2>& value()
const 123 MatrixSmall<MatrixDim1, MatrixDim2> M_value;
134 template<
UInt MatrixDim1,
UInt MatrixDim2>
135 inline ExpressionMatrix<MatrixDim1, MatrixDim2>
136 value (
const MatrixSmall<MatrixDim1, MatrixDim2>& myValue)
138 return ExpressionMatrix<MatrixDim1, MatrixDim2> (myValue);
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)