5 template<
typename OtherDerived>
6 EIGEN_STRONG_INLINE
const EIGEN_CWISE_PRODUCT_RETURN_TYPE(Derived,OtherDerived)
7 operator*(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
9 return EIGEN_CWISE_PRODUCT_RETURN_TYPE(Derived,OtherDerived)(derived(), other.derived());
16 template<
typename OtherDerived>
17 EIGEN_STRONG_INLINE
const CwiseBinaryOp<internal::scalar_quotient_op<Scalar>,
const Derived,
const OtherDerived>
18 operator/(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
20 return CwiseBinaryOp<internal::scalar_quotient_op<Scalar>,
const Derived,
const OtherDerived>(derived(), other.derived());
30 EIGEN_MAKE_CWISE_BINARY_OP(min,internal::scalar_min_op)
36 EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_min_op<Scalar>, const Derived,
37 const CwiseNullaryOp<internal::scalar_constant_op<Scalar>, PlainObject> >
38 #ifdef EIGEN_PARSED_BY_DOXYGEN
43 (
const Scalar &other)
const
45 return (min)(Derived::PlainObject::Constant(rows(), cols(), other));
55 EIGEN_MAKE_CWISE_BINARY_OP(max,internal::scalar_max_op)
61 EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_max_op<Scalar>, const Derived,
62 const CwiseNullaryOp<internal::scalar_constant_op<Scalar>, PlainObject> >
63 #ifdef EIGEN_PARSED_BY_DOXYGEN
68 (
const Scalar &other)
const
70 return (max)(Derived::PlainObject::Constant(rows(), cols(), other));
80 EIGEN_MAKE_CWISE_BINARY_OP(
operator<,std::less)
89 EIGEN_MAKE_CWISE_BINARY_OP(operator<=,std::less_equal)
98 EIGEN_MAKE_CWISE_BINARY_OP(operator>,std::greater)
107 EIGEN_MAKE_CWISE_BINARY_OP(operator>=,std::greater_equal)
121 EIGEN_MAKE_CWISE_BINARY_OP(operator==,std::equal_to)
135 EIGEN_MAKE_CWISE_BINARY_OP(operator!=,std::not_equal_to)
146 inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>, const Derived>
147 operator+(const Scalar& scalar)
const
149 return CwiseUnaryOp<internal::scalar_add_op<Scalar>,
const Derived>(derived(), internal::scalar_add_op<Scalar>(scalar));
152 friend inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>,
const Derived>
153 operator+(
const Scalar& scalar,
const EIGEN_CURRENT_STORAGE_BASE_CLASS<Derived>& other)
155 return other + scalar;
165 inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>,
const Derived>
166 operator-(
const Scalar& scalar)
const
168 return *
this + (-scalar);
171 friend inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>,
const CwiseUnaryOp<internal::scalar_opposite_op<Scalar>,
const Derived> >
172 operator-(
const Scalar& scalar,
const EIGEN_CURRENT_STORAGE_BASE_CLASS<Derived>& other)
174 return (-other) + scalar;
186 template<
typename OtherDerived>
187 inline const CwiseBinaryOp<internal::scalar_boolean_and_op, const Derived, const OtherDerived>
188 operator&&(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
190 EIGEN_STATIC_ASSERT((internal::is_same<bool,Scalar>::value && internal::is_same<bool,typename OtherDerived::Scalar>::value),
191 THIS_METHOD_IS_ONLY_FOR_EXPRESSIONS_OF_BOOL);
192 return CwiseBinaryOp<internal::scalar_boolean_and_op, const Derived, const OtherDerived>(derived(),other.derived());
204 template<
typename OtherDerived>
205 inline const CwiseBinaryOp<internal::scalar_boolean_or_op, const Derived, const OtherDerived>
206 operator||(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
208 EIGEN_STATIC_ASSERT((internal::is_same<bool,Scalar>::value && internal::is_same<bool,typename OtherDerived::Scalar>::value),
209 THIS_METHOD_IS_ONLY_FOR_EXPRESSIONS_OF_BOOL);
210 return CwiseBinaryOp<internal::scalar_boolean_or_op, const Derived, const OtherDerived>(derived(),other.derived());
const Eigen::CwiseUnaryOp< Eigen::internal::scalar_inverse_mult_op< typename Derived::Scalar >, const Derived > operator/(const typename Derived::Scalar &s, const Eigen::ArrayBase< Derived > &a)
Component-wise division of a scalar by array elements.
Definition: GlobalFunctions.h:74