11 #ifndef EIGEN_CWISE_BINARY_OP_H 12 #define EIGEN_CWISE_BINARY_OP_H 17 template<
typename BinaryOp,
typename Lhs,
typename Rhs>
35 const typename Lhs::Scalar&,
36 const typename Rhs::Scalar&
54 template<
typename BinaryOp,
typename Lhs,
typename Rhs,
typename StorageKind>
76 template<
typename BinaryOp,
typename LhsType,
typename RhsType>
79 BinaryOp, LhsType, RhsType,
80 typename internal::cwise_promote_storage_type<typename internal::traits<LhsType>::StorageKind,
81 typename internal::traits<RhsType>::StorageKind,
92 BinaryOp, LhsType, RhsType,
105 : m_lhs(aLhs), m_rhs(aRhs), m_functor(func)
110 eigen_assert(aLhs.rows() == aRhs.rows() && aLhs.cols() == aRhs.cols());
138 const BinaryOp&
functor()
const {
return m_functor; }
147 template<
typename BinaryOp,
typename Lhs,
typename Rhs,
typename StorageKind>
159 template<
typename Derived>
160 template<
typename OtherDerived>
172 template<
typename Derived>
173 template<
typename OtherDerived>
183 #endif // EIGEN_CWISE_BINARY_OP_H cwise_promote_storage_type< typename traits< Lhs >::StorageKind, typename traits< Rhs >::StorageKind, BinaryOp >::ret StorageKind
#define EIGEN_GENERIC_PUBLIC_INTERFACE(Derived)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator+=(const MatrixBase< OtherDerived > &other)
#define EIGEN_STRONG_INLINE
traits< Ancestor >::XprKind XprKind
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator-=(const MatrixBase< OtherDerived > &other)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index cols() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index rows() const
internal::remove_all< LhsType >::type Lhs
internal::remove_reference< RhsNested >::type _RhsNested
remove_reference< LhsNested >::type _LhsNested
CwiseBinaryOpImpl< BinaryOp, LhsType, RhsType, typename internal::cwise_promote_storage_type< typename internal::traits< LhsType >::StorageKind, typename internal::traits< Rhs >::StorageKind, BinaryOp >::ret >::Base Base
const unsigned int RowMajorBit
EIGEN_DEVICE_FUNC const _LhsNested & lhs() const
internal::generic_xpr_base< CwiseBinaryOp< BinaryOp, Lhs, Rhs > >::type Base
promote_index_type< typename traits< Lhs >::StorageIndex, typename traits< Rhs >::StorageIndex >::type StorageIndex
internal::remove_all< BinaryOp >::type Functor
Generic expression where a coefficient-wise binary operator is applied to two expressions.
result_of< BinaryOp(const typename Lhs::Scalar &, const typename Rhs::Scalar &) >::type Scalar
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
internal::remove_reference< LhsNested >::type _LhsNested
remove_reference< RhsNested >::type _RhsNested
EIGEN_DEVICE_FUNC const BinaryOp & functor() const
#define EIGEN_CHECK_BINARY_COMPATIBILIY(BINOP, LHS, RHS)
remove_all< Lhs >::type Ancestor
EIGEN_DEVICE_FUNC const _RhsNested & rhs() const
Base class for all dense matrices, vectors, and expressions.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void call_assignment(Dst &dst, const Src &src)
internal::remove_all< RhsType >::type Rhs
#define EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE(TYPE0, TYPE1)