Expression template node combining two grid expressions E1 and E2 element-wise via the binary functor F.
More...
#include <GridExpression.hpp>
template<typename E1, typename E2, typename F>
class CDPL::Math::GridBinary1< E1, E2, F >
Expression template node combining two grid expressions E1 and E2 element-wise via the binary functor F.
- Template Parameters
-
| E1 | The first wrapped grid expression type. |
| E2 | The second wrapped grid expression type. |
| F | The binary functor type. |
◆ ValueType
template<typename E1 , typename E2 , typename F >
The element value type of the expression (the functor's result type).
◆ ConstReference
template<typename E1 , typename E2 , typename F >
Constant element reference type.
◆ Reference
template<typename E1 , typename E2 , typename F >
Mutable element reference type (degrades to const for expression template results).
◆ ConstClosureType
template<typename E1 , typename E2 , typename F >
Constant closure type used when this expression appears inside another expression.
◆ ClosureType
template<typename E1 , typename E2 , typename F >
Closure type used when this expression appears inside another expression.
◆ SizeType
template<typename E1 , typename E2 , typename F >
The common size type of the two wrapped expressions.
◆ DifferenceType
template<typename E1 , typename E2 , typename F >
The common signed difference type of the two wrapped expressions.
◆ GridBinary1()
template<typename E1 , typename E2 , typename F >
Constructs the expression template node wrapping e1 and e2.
- Parameters
-
| e1 | The first grid expression. |
| e2 | The second grid expression. |
◆ getSize1()
template<typename E1 , typename E2 , typename F >
Returns the size along the first dimension after verifying that both wrapped expressions agree on it.
- Returns
- The size in the first dimension.
- Exceptions
-
| Base::SizeError | if the two wrapped expressions report different first dimension sizes. |
◆ getSize2()
template<typename E1 , typename E2 , typename F >
Returns the size along the second dimension after verifying that both wrapped expressions agree on it.
- Returns
- The size in the second dimension.
- Exceptions
-
| Base::SizeError | if the two wrapped expressions report different second dimension sizes. |
◆ getSize3()
template<typename E1 , typename E2 , typename F >
Returns the size along the third dimension after verifying that both wrapped expressions agree on it.
- Returns
- The size in the third dimension.
- Exceptions
-
| Base::SizeError | if the two wrapped expressions report different third dimension sizes. |
◆ operator()()
template<typename E1 , typename E2 , typename F >
Applies the binary functor to the elements at (i, j, k) of the two wrapped expressions and returns the result.
- Parameters
-
| i | The zero-based first dimension index. |
| j | The zero-based second dimension index. |
| k | The zero-based third dimension index. |
- Returns
- The element value as combined by the functor.
The documentation for this class was generated from the following file: