Generic expression where a coefficient-wise ternary operator is applied to two expressions.
More...
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
template<typename TernaryOp , typename Arg1Type , typename Arg2Type , typename Arg3Type >
136 if (internal::traits<internal::remove_all_t<Arg1Nested>>::ColsAtCompileTime ==
Dynamic &&
137 internal::traits<internal::remove_all_t<Arg2Nested>>::ColsAtCompileTime ==
Dynamic)
139 else if (internal::traits<internal::remove_all_t<Arg1Nested>>::ColsAtCompileTime ==
Dynamic &&
140 internal::traits<internal::remove_all_t<Arg3Nested>>::ColsAtCompileTime ==
Dynamic)
const int Dynamic
Definition: Constants.h:25
References Eigen::Dynamic, Eigen::CwiseTernaryOp< TernaryOp, Arg1Type, Arg2Type, Arg3Type >::m_arg1, Eigen::CwiseTernaryOp< TernaryOp, Arg1Type, Arg2Type, Arg3Type >::m_arg2, and Eigen::CwiseTernaryOp< TernaryOp, Arg1Type, Arg2Type, Arg3Type >::m_arg3.
Referenced by gdb.printers._MatrixEntryIterator::__next__(), gdb.printers.EigenMatrixPrinter::children(), gdb.printers.EigenSparseMatrixPrinter::children(), gdb.printers.EigenMatrixPrinter::to_string(), and gdb.printers.EigenSparseMatrixPrinter::to_string().
template<typename TernaryOp , typename Arg1Type , typename Arg2Type , typename Arg3Type >
124 if (internal::traits<internal::remove_all_t<Arg1Nested>>::RowsAtCompileTime ==
Dynamic &&
125 internal::traits<internal::remove_all_t<Arg2Nested>>::RowsAtCompileTime ==
Dynamic)
127 else if (internal::traits<internal::remove_all_t<Arg1Nested>>::RowsAtCompileTime ==
Dynamic &&
128 internal::traits<internal::remove_all_t<Arg3Nested>>::RowsAtCompileTime ==
Dynamic)
References Eigen::Dynamic, Eigen::CwiseTernaryOp< TernaryOp, Arg1Type, Arg2Type, Arg3Type >::m_arg1, Eigen::CwiseTernaryOp< TernaryOp, Arg1Type, Arg2Type, Arg3Type >::m_arg2, and Eigen::CwiseTernaryOp< TernaryOp, Arg1Type, Arg2Type, Arg3Type >::m_arg3.
Referenced by gdb.printers._MatrixEntryIterator::__next__(), gdb.printers.EigenMatrixPrinter::children(), gdb.printers.EigenSparseMatrixPrinter::children(), gdb.printers.EigenMatrixPrinter::to_string(), and gdb.printers.EigenSparseMatrixPrinter::to_string().