Eigen  3.4.90 (git rev 9589cc4e7fd8e4538bedef80dd36c7738977a8be)
 
Loading...
Searching...
No Matches
Eigen::CwiseTernaryOp< TernaryOp, Arg1, Arg2, Arg3 > Class Template Reference

#include <Eigen/src/Core/CwiseTernaryOp.h>

Detailed Description

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
TernaryOptemplate functor implementing the operator
Arg1Typethe type of the first argument
Arg2Typethe type of the second argument
Arg3Typethe 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

Public Member Functions

const Arg1Nested_ & arg1 () const
 
const Arg2Nested_ & arg2 () const
 
const Arg3Nested_ & arg3 () const
 
const TernaryOp & functor () const
 

Member Function Documentation

◆ arg1()

template<typename TernaryOp, typename Arg1, typename Arg2, typename Arg3>
const Arg1Nested_ & Eigen::CwiseTernaryOp< TernaryOp, Arg1, Arg2, Arg3 >::arg1 ( ) const
inline
Returns
the first argument nested expression

◆ arg2()

template<typename TernaryOp, typename Arg1, typename Arg2, typename Arg3>
const Arg2Nested_ & Eigen::CwiseTernaryOp< TernaryOp, Arg1, Arg2, Arg3 >::arg2 ( ) const
inline
Returns
the first argument nested expression

◆ arg3()

template<typename TernaryOp, typename Arg1, typename Arg2, typename Arg3>
const Arg3Nested_ & Eigen::CwiseTernaryOp< TernaryOp, Arg1, Arg2, Arg3 >::arg3 ( ) const
inline
Returns
the third argument nested expression

◆ functor()

template<typename TernaryOp, typename Arg1, typename Arg2, typename Arg3>
const TernaryOp & Eigen::CwiseTernaryOp< TernaryOp, Arg1, Arg2, Arg3 >::functor ( ) const
inline
Returns
the functor representing the ternary operation

The documentation for this class was generated from the following files: