Expression template node combining two matrix expressions E1 and E2 element-wise via the binary functor F.
More...
#include <MatrixExpression.hpp>
template<typename E1, typename E2, typename F>
class CDPL::Math::MatrixBinary1< E1, E2, F >
Expression template node combining two matrix expressions E1 and E2 element-wise via the binary functor F.
- Template Parameters
-
| E1 | The first wrapped matrix expression type. |
| E2 | The second wrapped matrix 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.
◆ MatrixBinary1()
template<typename E1 , typename E2 , typename F >
Constructs the expression template node wrapping e1 and e2.
- Parameters
-
| e1 | The first matrix expression. |
| e2 | The second matrix expression. |
◆ getSize1()
template<typename E1 , typename E2 , typename F >
Returns the number of rows after verifying that both wrapped expressions agree on it.
- Returns
- The number of rows.
- Exceptions
-
| Base::SizeError | if the two wrapped expressions report different row numbers. |
◆ getSize2()
template<typename E1 , typename E2 , typename F >
Returns the number of columns after verifying that both wrapped expressions agree on it.
- Returns
- The number of columns.
- Exceptions
-
| Base::SizeError | if the two wrapped expressions report different column numbers. |
◆ operator()()
template<typename E1 , typename E2 , typename F >
Applies the binary functor element-wise at (i, j) of the two wrapped expressions and returns the result.
- Parameters
-
| i | The zero-based row index. |
| j | The zero-based column index. |
- Returns
- The element value as combined by the functor.
The documentation for this class was generated from the following file: