Generic expression where a coefficient-wise binary operator is applied to two expressions. More...
Public Types | |
typedef CwiseBinaryOpImpl< BinaryOp, LhsType, RhsType, typename internal::cwise_promote_storage_type< typename internal::traits< LhsType >::StorageKind, typename internal::traits< Rhs >::StorageKind, BinaryOp >::ret >::Base | Base |
typedef internal::remove_all_t< BinaryOp > | Functor |
typedef internal::remove_all_t< LhsType > | Lhs |
typedef internal::ref_selector< LhsType >::type | LhsNested |
typedef std::remove_reference_t< LhsNested > | LhsNested_ |
typedef internal::remove_all_t< RhsType > | Rhs |
typedef internal::ref_selector< RhsType >::type | RhsNested |
typedef std::remove_reference_t< RhsNested > | RhsNested_ |
Public Member Functions | |
EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
CwiseBinaryOp (const Lhs &aLhs, const Rhs &aRhs, const BinaryOp &func=BinaryOp()) | |
const BinaryOp & | functor () const |
const LhsNested_ & | lhs () const |
const RhsNested_ & | rhs () const |
EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
Protected Attributes | |
const BinaryOp | m_functor |
LhsNested | m_lhs |
RhsNested | m_rhs |
Generic expression where a coefficient-wise binary operator is applied to two expressions.
BinaryOp | template functor implementing the operator |
LhsType | the type of the left-hand side |
RhsType | the type of the right-hand side |
This class represents an expression where a coefficient-wise binary operator is applied to two expressions. It is the return type of binary operators, by which we mean only those binary operators where both the left-hand side and the right-hand side are Eigen expressions. For example, the return type of matrix1+matrix2 is a CwiseBinaryOp.
Most of the time, this is the only way that it is used, so you typically don't have to name CwiseBinaryOp types explicitly.
Definition at line 79 of file CwiseBinaryOp.h.
typedef CwiseBinaryOpImpl< BinaryOp, LhsType, RhsType, typename internal::cwise_promote_storage_type<typename internal::traits<LhsType>::StorageKind, typename internal::traits<Rhs>::StorageKind, BinaryOp>::ret>::Base Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::Base |
Definition at line 97 of file CwiseBinaryOp.h.
typedef internal::remove_all_t<BinaryOp> Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::Functor |
Definition at line 89 of file CwiseBinaryOp.h.
typedef internal::remove_all_t<LhsType> Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::Lhs |
Definition at line 90 of file CwiseBinaryOp.h.
typedef internal::ref_selector<LhsType>::type Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::LhsNested |
Definition at line 103 of file CwiseBinaryOp.h.
typedef std::remove_reference_t<LhsNested> Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::LhsNested_ |
Definition at line 105 of file CwiseBinaryOp.h.
typedef internal::remove_all_t<RhsType> Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::Rhs |
Definition at line 91 of file CwiseBinaryOp.h.
typedef internal::ref_selector<RhsType>::type Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::RhsNested |
Definition at line 104 of file CwiseBinaryOp.h.
typedef std::remove_reference_t<RhsNested> Eigen::CwiseBinaryOp< BinaryOp, LhsType, RhsType >::RhsNested_ |
Definition at line 106 of file CwiseBinaryOp.h.
|
inline |
Definition at line 115 of file CwiseBinaryOp.h.
|
inline |
Definition at line 127 of file CwiseBinaryOp.h.
|
inline |
Definition at line 140 of file CwiseBinaryOp.h.
|
inline |
|
inline |
|
inline |
Definition at line 122 of file CwiseBinaryOp.h.
|
protected |
Definition at line 145 of file CwiseBinaryOp.h.
|
protected |
Definition at line 143 of file CwiseBinaryOp.h.
|
protected |
Definition at line 144 of file CwiseBinaryOp.h.