template<typename TernaryOp, typename Arg1Type, typename Arg2Type, typename Arg3Type>
Eigen::CwiseTernaryOp class

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

Contents

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.

Public functions

auto arg1() const -> const _Arg1Nested&
auto arg2() const -> const _Arg2Nested&
auto arg3() const -> const _Arg3Nested&
auto functor() const -> const TernaryOp&

Function documentation

template<typename TernaryOp, typename Arg1Type, typename Arg2Type, typename Arg3Type>
const _Arg1Nested& Eigen::CwiseTernaryOp<TernaryOp, Arg1Type, Arg2Type, Arg3Type>::arg1() const

Returns the first argument nested expression

template<typename TernaryOp, typename Arg1Type, typename Arg2Type, typename Arg3Type>
const _Arg2Nested& Eigen::CwiseTernaryOp<TernaryOp, Arg1Type, Arg2Type, Arg3Type>::arg2() const

Returns the first argument nested expression

template<typename TernaryOp, typename Arg1Type, typename Arg2Type, typename Arg3Type>
const _Arg3Nested& Eigen::CwiseTernaryOp<TernaryOp, Arg1Type, Arg2Type, Arg3Type>::arg3() const

Returns the third argument nested expression

template<typename TernaryOp, typename Arg1Type, typename Arg2Type, typename Arg3Type>
const TernaryOp& Eigen::CwiseTernaryOp<TernaryOp, Arg1Type, Arg2Type, Arg3Type>::functor() const

Returns the functor representing the ternary operation