20template<
typename OtherDerived>
22EIGEN_STRONG_INLINE
const EIGEN_CWISE_BINARY_RETURN_TYPE(Derived,OtherDerived,product)
23cwiseProduct(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
25 return EIGEN_CWISE_BINARY_RETURN_TYPE(Derived,OtherDerived,product)(derived(), other.derived());
40template<
typename OtherDerived>
42inline const CwiseBinaryOp<numext::equal_to<Scalar>,
const Derived,
const OtherDerived>
43cwiseEqual(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
45 return CwiseBinaryOp<numext::equal_to<Scalar>,
const Derived,
const OtherDerived>(derived(), other.derived());
60template<
typename OtherDerived>
62inline const CwiseBinaryOp<numext::not_equal_to<Scalar>,
const Derived,
const OtherDerived>
63cwiseNotEqual(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
65 return CwiseBinaryOp<numext::not_equal_to<Scalar>,
const Derived,
const OtherDerived>(derived(), other.derived());
75template<
typename OtherDerived>
77EIGEN_STRONG_INLINE
const CwiseBinaryOp<internal::scalar_min_op<Scalar,Scalar>,
const Derived,
const OtherDerived>
78cwiseMin(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
80 return CwiseBinaryOp<internal::scalar_min_op<Scalar,Scalar>,
const Derived,
const OtherDerived>(derived(), other.derived());
88EIGEN_STRONG_INLINE
const CwiseBinaryOp<internal::scalar_min_op<Scalar,Scalar>,
const Derived,
const ConstantReturnType>
89cwiseMin(
const Scalar &other)
const
91 return cwiseMin(Derived::Constant(rows(), cols(), other));
101template<
typename OtherDerived>
103EIGEN_STRONG_INLINE
const CwiseBinaryOp<internal::scalar_max_op<Scalar,Scalar>,
const Derived,
const OtherDerived>
104cwiseMax(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
106 return CwiseBinaryOp<internal::scalar_max_op<Scalar,Scalar>,
const Derived,
const OtherDerived>(derived(), other.derived());
114EIGEN_STRONG_INLINE
const CwiseBinaryOp<internal::scalar_max_op<Scalar,Scalar>,
const Derived,
const ConstantReturnType>
115cwiseMax(
const Scalar &other)
const
117 return cwiseMax(Derived::Constant(rows(), cols(), other));
128template<
typename OtherDerived>
130EIGEN_STRONG_INLINE
const CwiseBinaryOp<internal::scalar_quotient_op<Scalar>,
const Derived,
const OtherDerived>
131cwiseQuotient(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
133 return CwiseBinaryOp<internal::scalar_quotient_op<Scalar>,
const Derived,
const OtherDerived>(derived(), other.derived());
136typedef CwiseBinaryOp<internal::scalar_cmp_op<Scalar,Scalar,internal::cmp_EQ>,
const Derived,
const ConstantReturnType> CwiseScalarEqualReturnType;
148inline const CwiseScalarEqualReturnType
149cwiseEqual(
const Scalar& s)
const
151 return CwiseScalarEqualReturnType(derived(), Derived::Constant(rows(), cols(), s), internal::scalar_cmp_op<Scalar,Scalar,internal::cmp_EQ>());