6template<
typename OtherDerived>
9operator*(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
18template<
typename OtherDerived>
20EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_quotient_op<Scalar,typename OtherDerived::Scalar>,
const Derived,
const OtherDerived>
21operator/(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
23 return CwiseBinaryOp<internal::scalar_quotient_op<Scalar,typename OtherDerived::Scalar>,
const Derived,
const OtherDerived>(derived(), other.derived());
40EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_min_op<Scalar,Scalar>,
const Derived,
41 const CwiseNullaryOp<internal::scalar_constant_op<Scalar>, PlainObject> >
42#ifdef EIGEN_PARSED_BY_DOXYGEN
47(
const Scalar &other)
const
49 return (
min)(Derived::PlainObject::Constant(rows(), cols(), other));
66EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_max_op<Scalar,Scalar>,
const Derived,
67 const CwiseNullaryOp<internal::scalar_constant_op<Scalar>, PlainObject> >
68#ifdef EIGEN_PARSED_BY_DOXYGEN
73(
const Scalar &other)
const
75 return (
max)(Derived::PlainObject::Constant(rows(), cols(), other));
92EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_absolute_difference_op<Scalar,Scalar>,
const Derived,
93 const CwiseNullaryOp<internal::scalar_constant_op<Scalar>, PlainObject> >
94#ifdef EIGEN_PARSED_BY_DOXYGEN
99(
const Scalar &other)
const
101 return (absolute_difference)(Derived::PlainObject::Constant(rows(), cols(), other));
113#ifndef EIGEN_PARSED_BY_DOXYGEN
129const CwiseBinaryOp<internal::scalar_pow_op<Scalar,T>,Derived,Constant<T> >
pow(
const T& exponent)
const;
134#define EIGEN_MAKE_CWISE_COMP_OP(OP, COMPARATOR) \
135template<typename OtherDerived> \
136EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_cmp_op<Scalar, typename OtherDerived::Scalar, internal::cmp_ ## COMPARATOR>, const Derived, const OtherDerived> \
137OP(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const \
139 return CwiseBinaryOp<internal::scalar_cmp_op<Scalar, typename OtherDerived::Scalar, internal::cmp_ ## COMPARATOR>, const Derived, const OtherDerived>(derived(), other.derived()); \
141typedef CwiseBinaryOp<internal::scalar_cmp_op<Scalar,Scalar, internal::cmp_ ## COMPARATOR>, const Derived, const CwiseNullaryOp<internal::scalar_constant_op<Scalar>, PlainObject> > Cmp ## COMPARATOR ## ReturnType; \
142typedef CwiseBinaryOp<internal::scalar_cmp_op<Scalar,Scalar, internal::cmp_ ## COMPARATOR>, const CwiseNullaryOp<internal::scalar_constant_op<Scalar>, PlainObject>, const Derived > RCmp ## COMPARATOR ## ReturnType; \
143EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Cmp ## COMPARATOR ## ReturnType \
144OP(const Scalar& s) const { \
145 return this->OP(Derived::PlainObject::Constant(rows(), cols(), s)); \
147EIGEN_DEVICE_FUNC friend EIGEN_STRONG_INLINE const RCmp ## COMPARATOR ## ReturnType \
148OP(const Scalar& s, const EIGEN_CURRENT_STORAGE_BASE_CLASS<Derived>& d) { \
149 return Derived::PlainObject::Constant(d.rows(), d.cols(), s).OP(d); \
152#define EIGEN_MAKE_CWISE_COMP_R_OP(OP, R_OP, RCOMPARATOR) \
153template<typename OtherDerived> \
154EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseBinaryOp<internal::scalar_cmp_op<typename OtherDerived::Scalar, Scalar, internal::cmp_##RCOMPARATOR>, const OtherDerived, const Derived> \
155OP(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const \
157 return CwiseBinaryOp<internal::scalar_cmp_op<typename OtherDerived::Scalar, Scalar, internal::cmp_##RCOMPARATOR>, const OtherDerived, const Derived>(other.derived(), derived()); \
160inline const RCmp ## RCOMPARATOR ## ReturnType \
161OP(const Scalar& s) const { \
162 return Derived::PlainObject::Constant(rows(), cols(), s).R_OP(*this); \
164friend inline const Cmp ## RCOMPARATOR ## ReturnType \
165OP(const Scalar& s, const Derived& d) { \
166 return d.R_OP(Derived::PlainObject::Constant(d.rows(), d.cols(), s)); \
236#undef EIGEN_MAKE_CWISE_COMP_OP
237#undef EIGEN_MAKE_CWISE_COMP_R_OP
240#ifndef EIGEN_PARSED_BY_DOXYGEN
253const CwiseBinaryOp<internal::scalar_sum_op<Scalar,T>,Derived,Constant<T> >
operator+(
const T&
scalar)
const;
258template<
typename T>
friend
259const CwiseBinaryOp<internal::scalar_sum_op<T,Scalar>,Constant<T>,Derived>
operator+(
const T&
scalar,
const StorageBaseType& expr);
262#ifndef EIGEN_PARSED_BY_DOXYGEN
275const CwiseBinaryOp<internal::scalar_difference_op<Scalar,T>,Derived,Constant<T> >
operator-(
const T&
scalar)
const;
280template<
typename T>
friend
281const CwiseBinaryOp<internal::scalar_difference_op<T,Scalar>,Constant<T>,Derived>
operator-(
const T&
scalar,
const StorageBaseType& expr);
285#ifndef EIGEN_PARSED_BY_DOXYGEN
293 template<
typename T>
friend
294 inline const CwiseBinaryOp<internal::scalar_quotient_op<T,Scalar>,Constant<T>,Derived>
295 operator/(
const T& s,
const StorageBaseType& a);
307template<
typename OtherDerived>
309inline const CwiseBinaryOp<internal::scalar_boolean_xor_op, const Derived, const OtherDerived>
310operator^(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other)
const
312 EIGEN_STATIC_ASSERT((internal::is_same<bool,Scalar>::value && internal::is_same<bool,typename OtherDerived::Scalar>::value),
313 THIS_METHOD_IS_ONLY_FOR_EXPRESSIONS_OF_BOOL);
314 return CwiseBinaryOp<internal::scalar_boolean_xor_op, const Derived, const OtherDerived>(derived(),other.derived());
329template<
typename DerivedN>
330inline const CwiseBinaryOp<internal::scalar_polygamma_op<Scalar>,
const DerivedN,
const Derived>
331polygamma(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<DerivedN> &n)
const
333 return CwiseBinaryOp<internal::scalar_polygamma_op<Scalar>,
const DerivedN,
const Derived>(n.derived(), this->derived());
353template<
typename DerivedQ>
354inline const CwiseBinaryOp<internal::scalar_zeta_op<Scalar>,
const Derived,
const DerivedQ>
355zeta(
const EIGEN_CURRENT_STORAGE_BASE_CLASS<DerivedQ> &q)
const
357 return CwiseBinaryOp<internal::scalar_zeta_op<Scalar>,
const Derived,
const DerivedQ>(this->derived(), q.derived());
EIGEN_DEVICE_FUNC const CwiseBinaryOp< internal::scalar_boolean_xor_op, const Derived, const OtherDerived > operator^(const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const
Definition: ArrayCwiseBinaryOps.h:310
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const EIGEN_CWISE_BINARY_RETURN_TYPE(Derived, OtherDerived, product) operator*(const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const
Definition: ArrayCwiseBinaryOps.h:8
const CwiseBinaryOp< internal::scalar_zeta_op< Scalar >, const Derived, const DerivedQ > zeta(const EIGEN_CURRENT_STORAGE_BASE_CLASS< DerivedQ > &q) const
Definition: ArrayCwiseBinaryOps.h:355
#define EIGEN_MAKE_CWISE_COMP_OP(OP, COMPARATOR)
Definition: ArrayCwiseBinaryOps.h:134
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseBinaryOp< internal::scalar_quotient_op< Scalar, typename OtherDerived::Scalar >, const Derived, const OtherDerived > operator/(const EIGEN_CURRENT_STORAGE_BASE_CLASS< OtherDerived > &other) const
Definition: ArrayCwiseBinaryOps.h:21
#define EIGEN_MAKE_CWISE_COMP_R_OP(OP, R_OP, RCOMPARATOR)
Definition: ArrayCwiseBinaryOps.h:152
EIGEN_DEVICE_FUNC const NegativeReturnType operator-() const
Definition: CommonCwiseUnaryOps.h:45
#define EIGEN_MAKE_SCALAR_BINARY_OP_ONTHERIGHT(METHOD, OPNAME)
Definition: Macros.h:1372
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:986
#define EIGEN_MAKE_SCALAR_BINARY_OP_ONTHELEFT(METHOD, OPNAME)
Definition: Macros.h:1381
#define EIGEN_MAKE_SCALAR_BINARY_OP(METHOD, OPNAME)
Definition: Macros.h:1390
#define EIGEN_MAKE_CWISE_BINARY_OP(METHOD, OPNAME)
Definition: Macros.h:1346
#define EIGEN_STRONG_INLINE
Definition: Macros.h:927
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Definition: StaticAssert.h:127
const Eigen::CwiseBinaryOp< Eigen::internal::scalar_pow_op< typename Derived::Scalar, typename ExponentDerived::Scalar >, const Derived, const ExponentDerived > pow(const Eigen::ArrayBase< Derived > &x, const Eigen::ArrayBase< ExponentDerived > &exponents)
Definition: GlobalFunctions.h:143
constexpr common_t< T1, T2 > max(const T1 x, const T2 y) noexcept
Compile-time pairwise maximum function.
Definition: max.hpp:35
constexpr common_t< T1, T2 > min(const T1 x, const T2 y) noexcept
Compile-time pairwise minimum function.
Definition: min.hpp:35
unit< std::ratio< 1 >, units::category::scalar_unit > scalar
Definition: base.h:2510
constexpr unit_t< Units, T, NonLinearScale > operator+(const unit_t< Units, T, NonLinearScale > &u) noexcept
Definition: base.h:2328