Expression template node combining a scalar E1 (lhs) and a grid expression E2 (rhs) element-wise via the binary functor F.
More...
#include <GridExpression.hpp>
template<typename E1, typename E2, typename F>
class CDPL::Math::Scalar1GridBinary< E1, E2, F >
Expression template node combining a scalar E1 (lhs) and a grid expression E2 (rhs) element-wise via the binary functor F.
- Template Parameters
-
| E1 | The scalar type appearing on the left-hand side. |
| E2 | The 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 size type inherited from the wrapped grid expression.
◆ DifferenceType
template<typename E1 , typename E2 , typename F >
The signed difference type inherited from the wrapped grid expression.
◆ Scalar1GridBinary()
template<typename E1 , typename E2 , typename F >
Constructs the expression template node combining the scalar e1 and the grid expression e2.
- Parameters
-
| e1 | The scalar value on the left-hand side. |
| e2 | The grid expression on the right-hand side. |
◆ getSize1()
template<typename E1 , typename E2 , typename F >
Returns the size of the wrapped grid expression along the first dimension.
- Returns
- The wrapped expression's size in the first dimension.
◆ getSize2()
template<typename E1 , typename E2 , typename F >
Returns the size of the wrapped grid expression along the second dimension.
- Returns
- The wrapped expression's size in the second dimension.
◆ getSize3()
template<typename E1 , typename E2 , typename F >
Returns the size of the wrapped grid expression along the third dimension.
- Returns
- The wrapped expression's size in the third dimension.
◆ operator()()
template<typename E1 , typename E2 , typename F >
Applies the binary functor to the scalar and the element at (i, j, k) of the wrapped grid expression 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: