template<typename BinaryOp, typename LhsType, typename RhsType>
CwiseBinaryOp class
Generic expression where a coefficient-wise binary operator is applied to two expressions.
Template parameters | |
---|---|
BinaryOp | template functor implementing the operator |
LhsType | the type of the left-hand side |
RhsType | the type of the right-hand side |
Contents
- Reference
This class represents an expression where a coefficient-wise binary operator is applied to two expressions. It is the return type of binary operators, by which we mean only those binary operators where both the left-hand side and the right-hand side are Eigen expressions. For example, the return type of matrix1+matrix2 is a CwiseBinaryOp.
Most of the time, this is the only way that it is used, so you typically don't have to name CwiseBinaryOp types explicitly.
Public functions
Function documentation
template<typename BinaryOp, typename LhsType, typename RhsType>
const BinaryOp& Eigen:: CwiseBinaryOp<BinaryOp, LhsType, RhsType>:: functor() const
Returns | the functor representing the binary operation |
---|
template<typename BinaryOp, typename LhsType, typename RhsType>
const _LhsNested& Eigen:: CwiseBinaryOp<BinaryOp, LhsType, RhsType>:: lhs() const
Returns | the left hand side nested expression |
---|
template<typename BinaryOp, typename LhsType, typename RhsType>
const _RhsNested& Eigen:: CwiseBinaryOp<BinaryOp, LhsType, RhsType>:: rhs() const
Returns | the right hand side nested expression |
---|