template<typename TernaryOp, typename Arg1, typename Arg2, typename Arg3>
class Eigen::CwiseTernaryOp< TernaryOp, Arg1, Arg2, Arg3 >
Generic expression where a coefficient-wise ternary operator is applied to two expressions.
- Template Parameters
-
TernaryOp | template functor implementing the operator |
Arg1Type | the type of the first argument |
Arg2Type | the type of the second argument |
Arg3Type | the type of the third argument |
This class represents an expression where a coefficient-wise ternary operator is applied to three expressions. It is the return type of ternary operators, by which we mean only those ternary operators where all three arguments are Eigen expressions. For example, the return type of betainc(matrix1, matrix2, matrix3) is a CwiseTernaryOp.
Most of the time, this is the only way that it is used, so you typically don't have to name CwiseTernaryOp types explicitly.
- See also
- MatrixBase::ternaryExpr(const MatrixBase<Argument2> &, const
MatrixBase<Argument3> &, const CustomTernaryOp &) const, class CwiseBinaryOp, class CwiseUnaryOp, class CwiseNullaryOp