28 namespace BinaryOperations
30 struct Addition {
static inline constexpr
double Evaluate(
const double V1,
const double V2) {
return V1 + V2; } };
31 struct Substraction {
static inline constexpr
double Evaluate(
const double V1,
const double V2) {
return V1 - V2; } };
32 struct Multiplication {
static inline constexpr
double Evaluate(
const double V1,
const double V2) {
return V1 * V2; } };
33 struct Division {
static inline constexpr
double Evaluate(
const double V1,
const double V2) {
return V1 / V2; } };
34 struct Power {
static inline double Evaluate(
const double V1,
const double V2) {
return std::pow(V1, V2); } };
38 template <
class TOperationType>
65 const IndexType ComponentIndex)
const override;
67 const std::vector<IndexType>
GetItemShape()
const override;
71 std::string
Info()
const override;
std::string Info() const override
Turn back information as a string.
Definition: periodic_interface_process.hpp:93
Definition: binary_expression.h:39
const Expression::ConstPointer mpRight
Definition: binary_expression.h:80
std::size_t IndexType
Definition: binary_expression.h:44
const Expression::ConstPointer mpLeft
Definition: binary_expression.h:78
Base class or all the expression types.
Definition: expression.h:38
Kratos::intrusive_ptr< Expression > Pointer
Definition: expression.h:44
Kratos::intrusive_ptr< const Expression > ConstPointer
Definition: expression.h:46
std::string GetItemShape(const std::vector< IndexType > &rShape)
Definition: binary_expression.cpp:27
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
double Evaluate(const PolynomialType &rPolynomial, double x)
Definition: polynomial_utilities.cpp:77
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
Definition: binary_expression.h:30
static constexpr double Evaluate(const double V1, const double V2)
Definition: binary_expression.h:30
Definition: binary_expression.h:33
static constexpr double Evaluate(const double V1, const double V2)
Definition: binary_expression.h:33
Definition: binary_expression.h:32
static constexpr double Evaluate(const double V1, const double V2)
Definition: binary_expression.h:32
Definition: binary_expression.h:34
static double Evaluate(const double V1, const double V2)
Definition: binary_expression.h:34
Definition: binary_expression.h:31
static constexpr double Evaluate(const double V1, const double V2)
Definition: binary_expression.h:31