42 template<
class TIteratorType>
52 <<
"The source and destination should have same stride. [ source stride = "
55 <<
"Source expression:\n"
63 template<
class TIteratorType>
69 return Kratos::make_intrusive<UnaryReshapeExpression>(std::move(pExpression), Begin, End);
75 const IndexType ComponentIndex)
const override
77 return mpSourceExpression->Evaluate(EntityIndex, EntityDataBeginIndex, ComponentIndex);
90 std::string
Info()
const override
92 std::stringstream msg;
Base class or all the expression types.
Definition: expression.h:38
IndexType GetItemComponentCount() const
Get the Local Size of the expression.
Definition: expression.cpp:104
IndexType NumberOfEntities() const
Get the maximum number of entities allowed for this expression.
Definition: expression.h:181
Kratos::intrusive_ptr< Expression > Pointer
Definition: expression.h:44
std::size_t IndexType
Definition: expression.h:48
Kratos::intrusive_ptr< const Expression > ConstPointer
Definition: expression.h:46
Used to create lazy expression to reshape given expression to a new shape.
Definition: unary_reshape_expression.h:31
UnaryReshapeExpression(Expression::ConstPointer pExpression, TIteratorType Begin, TIteratorType End)
Definition: unary_reshape_expression.h:43
static Expression::Pointer Create(Expression::ConstPointer pExpression, TIteratorType Begin, TIteratorType End)
Definition: unary_reshape_expression.h:64
const std::vector< IndexType > GetItemShape() const override
Get the Shape of the expression.
Definition: unary_reshape_expression.h:80
double Evaluate(const IndexType EntityIndex, const IndexType EntityDataBeginIndex, const IndexType ComponentIndex) const override
Evalute the expression for the given entity data start index and component index and returns the valu...
Definition: unary_reshape_expression.h:72
const Expression::ConstPointer mpSourceExpression
Definition: unary_reshape_expression.h:106
std::string Info() const override
Definition: unary_reshape_expression.h:90
const std::vector< IndexType > mShape
Definition: unary_reshape_expression.h:108
IndexType GetMaxDepth() const override
Get the Max Depth of the lazy expression tree.
Definition: unary_reshape_expression.h:85
#define KRATOS_ERROR_IF_NOT(conditional)
Definition: exception.h:163
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
v
Definition: generate_convection_diffusion_explicit_element.py:114