|
MGIS 3.1.0
|
an evaluator applying a binary operation to the values returned by two evaluators, without storing this operation More...
#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Function/BinaryOperation.hxx>
Public Member Functions | |
| MGIS_HOST_DEVICE constexpr auto | apply (const evaluator_result< FirstEvaluatorType > &, const evaluator_result< SecondEvaluatorType > &) const |
| apply the modifier | |
| Public Member Functions inherited from mgis::function::BinaryOperationEvaluatorBase< BinaryOperationModifier2< CallableType, FirstEvaluatorType, SecondEvaluatorType >, FirstEvaluatorType, SecondEvaluatorType > | |
| constexpr | BinaryOperationEvaluatorBase (const FirstEvaluatorType &, const SecondEvaluatorType &) |
| constructor | |
| constexpr decltype(auto) | getSpace () const |
| return the underlying space | |
| constexpr bool | check (AbstractErrorHandler &) const |
| perform consistency checks | |
| constexpr auto | operator() (const element_index< Space > &) const |
| call operator | |
an evaluator applying a binary operation to the values returned by two evaluators, without storing this operation
This class behaves as BinaryOperationModifier except that the callable object is not stored in the instance: it must be trivially default constructible and a default constructed object is created each time the values are computed. Such a modifier is thus as light as the two underlying evaluators, which allows constexpr modifiers such as add or inner_product to be defined:
The constructor inherited from BinaryOperationEvaluatorBase only takes the two evaluators as arguments.
| CallableType | type of the binary operation, which must be trivially default constructible and callable with the values returned by the two evaluators |
| FirstEvaluatorType | type of the evaluator used to compute the first argument of the operation |
| SecondEvaluatorType | type of the evaluator used to compute the second argument of the operation |
|
constexpr |
apply the modifier
| [in] | v1 | value computed by the evaluator of the first argument of the operation at a given integration point |
| [in] | v2 | value computed by the evaluator of the second argument of the operation at the same integration point |