20 template<
typename OtherDerived>
21 EIGEN_STRONG_INLINE
const EIGEN_CWISE_PRODUCT_RETURN_TYPE(Derived,OtherDerived)
22 cwiseProduct(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
24 return EIGEN_CWISE_PRODUCT_RETURN_TYPE(Derived,OtherDerived)(derived(), other.derived());
39 template<
typename OtherDerived>
40 inline const CwiseBinaryOp<std::equal_to<Scalar>,
const Derived,
const OtherDerived>
41 cwiseEqual(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
43 return CwiseBinaryOp<std::equal_to<Scalar>,
const Derived,
const OtherDerived>(derived(), other.derived());
58 template<
typename OtherDerived>
59 inline const CwiseBinaryOp<std::not_equal_to<Scalar>,
const Derived,
const OtherDerived>
60 cwiseNotEqual(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
62 return CwiseBinaryOp<std::not_equal_to<Scalar>,
const Derived,
const OtherDerived>(derived(), other.derived());
72 template<
typename OtherDerived>
73 EIGEN_STRONG_INLINE
const CwiseBinaryOp<internal::scalar_min_op<Scalar>,
const Derived,
const OtherDerived>
74 cwiseMin(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
76 return CwiseBinaryOp<internal::scalar_min_op<Scalar>,
const Derived,
const OtherDerived>(derived(), other.derived());
83 EIGEN_STRONG_INLINE
const CwiseBinaryOp<internal::scalar_min_op<Scalar>,
const Derived,
const ConstantReturnType>
84 cwiseMin(
const Scalar &other)
const
86 return cwiseMin(Derived::Constant(rows(), cols(), other));
96 template<
typename OtherDerived>
97 EIGEN_STRONG_INLINE
const CwiseBinaryOp<internal::scalar_max_op<Scalar>,
const Derived,
const OtherDerived>
98 cwiseMax(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
100 return CwiseBinaryOp<internal::scalar_max_op<Scalar>,
const Derived,
const OtherDerived>(derived(), other.derived());
107 EIGEN_STRONG_INLINE
const CwiseBinaryOp<internal::scalar_max_op<Scalar>,
const Derived,
const ConstantReturnType>
108 cwiseMax(
const Scalar &other)
const
110 return cwiseMax(Derived::Constant(rows(), cols(), other));
121 template<
typename OtherDerived>
122 EIGEN_STRONG_INLINE
const CwiseBinaryOp<internal::scalar_quotient_op<Scalar>,
const Derived,
const OtherDerived>
123 cwiseQuotient(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
125 return CwiseBinaryOp<internal::scalar_quotient_op<Scalar>,
const Derived,
const OtherDerived>(derived(), other.derived());
128 typedef CwiseBinaryOp<internal::scalar_cmp_op<Scalar,internal::cmp_EQ>,
const Derived,
const ConstantReturnType> CwiseScalarEqualReturnType;
139 inline const CwiseScalarEqualReturnType
140 cwiseEqual(
const Scalar& s)
const
142 return CwiseScalarEqualReturnType(derived(), Derived::Constant(rows(), cols(), s), internal::scalar_cmp_op<Scalar,internal::cmp_EQ>());