11 #ifndef EIGEN_CWISE_BINARY_OP_H 12 #define EIGEN_CWISE_BINARY_OP_H 17 template<
typename BinaryOp,
typename Lhs,
typename Rhs>
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,
103 #if EIGEN_COMP_MSVC && EIGEN_HAS_CXX11 111 : m_lhs(aLhs), m_rhs(aRhs), m_functor(
func)
116 eigen_assert(aLhs.rows() == aRhs.rows() && aLhs.cols() == aRhs.cols());
132 const _LhsNested&
lhs()
const {
return m_lhs; }
135 const _RhsNested&
rhs()
const {
return m_rhs; }
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)
#define EIGEN_STRONG_INLINE
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
traits< Ancestor >::XprKind XprKind
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const _RhsNested & rhs() const
internal::remove_all< LhsType >::type Lhs
Namespace containing all symbols from the Eigen library.
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 EIGEN_STRONG_INLINE Derived & operator-=(const MatrixBase< OtherDerived > &other)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
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.
remove_reference< RhsNested >::type _RhsNested
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const _LhsNested & lhs() const
#define EIGEN_DEVICE_FUNC
#define EIGEN_CHECK_BINARY_COMPATIBILIY(BINOP, LHS, RHS)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const BinaryOp & functor() const
remove_all< Lhs >::type Ancestor
Generic expression where a coefficient-wise unary operator is applied to an expression.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CwiseBinaryOp(const Lhs &aLhs, const Rhs &aRhs, const BinaryOp &func=BinaryOp())
Base class for all dense matrices, vectors, and expressions.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void call_assignment(Dst &dst, const Src &src)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator+=(const MatrixBase< OtherDerived > &other)
internal::remove_all< RhsType >::type Rhs
#define EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE(TYPE0, TYPE1)