Generic expression where a coefficient-wise ternary operator is applied to two expressions.
More...
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE | CwiseTernaryOp (const Arg1 &a1, const Arg2 &a2, const Arg3 &a3, const TernaryOp &func=TernaryOp()) |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index | rows () const |
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index | cols () const |
|
EIGEN_DEVICE_FUNC const _Arg1Nested & | arg1 () const |
|
EIGEN_DEVICE_FUNC const _Arg2Nested & | arg2 () const |
|
EIGEN_DEVICE_FUNC const _Arg3Nested & | arg3 () const |
|
EIGEN_DEVICE_FUNC const TernaryOp & | functor () const |
|
template<typename TernaryOp, typename Arg1Type, typename Arg2Type, typename Arg3Type>
class Eigen::CwiseTernaryOp< TernaryOp, Arg1Type, Arg2Type, Arg3Type >
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