5 template<
typename OtherDerived>
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());
36 EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_min_op<Scalar>, const Derived, const ConstantReturnType>
37 (min)(const Scalar &other)
const
39 return (min)(Derived::PlainObject::Constant(rows(), cols(), other));
55 EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_max_op<Scalar>, const Derived, const ConstantReturnType>
56 (max)(const Scalar &other)
const
58 return (max)(Derived::PlainObject::Constant(rows(), cols(), other));
134 inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>, const Derived>
135 operator+(const Scalar& scalar)
const
137 return CwiseUnaryOp<internal::scalar_add_op<Scalar>,
const Derived>(derived(), internal::scalar_add_op<Scalar>(scalar));
140 friend inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>,
const Derived>
141 operator+(
const Scalar& scalar,
const EIGEN_CURRENT_STORAGE_BASE_CLASS<Derived>& other)
143 return other + scalar;
153 inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>,
const Derived>
156 return *
this + (-scalar);
159 friend inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>,
const CwiseUnaryOp<internal::scalar_opposite_op<Scalar>,
const Derived> >
160 operator-(
const Scalar& scalar,
const EIGEN_CURRENT_STORAGE_BASE_CLASS<Derived>& other)
162 return (-other) + scalar;
174 template<
typename OtherDerived>
175 inline const CwiseBinaryOp<internal::scalar_boolean_and_op, const Derived, const OtherDerived>
176 operator&&(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
178 EIGEN_STATIC_ASSERT((internal::is_same<bool,Scalar>::value && internal::is_same<bool,typename OtherDerived::Scalar>::value),
179 THIS_METHOD_IS_ONLY_FOR_EXPRESSIONS_OF_BOOL);
180 return CwiseBinaryOp<internal::scalar_boolean_and_op, const Derived, const OtherDerived>(derived(),other.derived());
192 template<
typename OtherDerived>
193 inline const CwiseBinaryOp<internal::scalar_boolean_or_op, const Derived, const OtherDerived>
194 operator||(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
196 EIGEN_STATIC_ASSERT((internal::is_same<bool,Scalar>::value && internal::is_same<bool,typename OtherDerived::Scalar>::value),
197 THIS_METHOD_IS_ONLY_FOR_EXPRESSIONS_OF_BOOL);
198 return CwiseBinaryOp<internal::scalar_boolean_or_op, const Derived, const OtherDerived>(derived(),other.derived());