10 #ifndef EIGEN_ARRAYBASE_H 11 #define EIGEN_ARRAYBASE_H 43 #ifndef EIGEN_PARSED_BY_DOXYGEN 65 using Base::const_cast_derived;
72 using Base::operator=;
73 using Base::operator+=;
74 using Base::operator-=;
75 using Base::operator*=;
76 using Base::operator/=;
80 #endif // not EIGEN_PARSED_BY_DOXYGEN 82 #ifndef EIGEN_PARSED_BY_DOXYGEN 87 #endif // not EIGEN_PARSED_BY_DOXYGEN 89 #define EIGEN_CURRENT_STORAGE_BASE_CLASS Eigen::ArrayBase 90 #define EIGEN_DOC_UNARY_ADDONS(X,Y) 91 # include "../plugins/CommonCwiseUnaryOps.h" 92 # include "../plugins/MatrixCwiseUnaryOps.h" 93 # include "../plugins/ArrayCwiseUnaryOps.h" 94 # include "../plugins/CommonCwiseBinaryOps.h" 95 # include "../plugins/MatrixCwiseBinaryOps.h" 96 # include "../plugins/ArrayCwiseBinaryOps.h" 97 # ifdef EIGEN_ARRAYBASE_PLUGIN 98 # include EIGEN_ARRAYBASE_PLUGIN 100 #undef EIGEN_CURRENT_STORAGE_BASE_CLASS 101 #undef EIGEN_DOC_UNARY_ADDONS 124 template<
typename OtherDerived>
127 template<
typename OtherDerived>
131 template<
typename OtherDerived>
135 template<
typename OtherDerived>
166 {
EIGEN_STATIC_ASSERT(std::ptrdiff_t(
sizeof(
typename OtherDerived::Scalar))==-1,YOU_CANNOT_MIX_ARRAYS_AND_MATRICES);
return *
this;}
169 {
EIGEN_STATIC_ASSERT(std::ptrdiff_t(
sizeof(
typename OtherDerived::Scalar))==-1,YOU_CANNOT_MIX_ARRAYS_AND_MATRICES);
return *
this;}
176 template<
typename Derived>
177 template<
typename OtherDerived>
189 template<
typename Derived>
190 template<
typename OtherDerived>
202 template<
typename Derived>
203 template<
typename OtherDerived>
215 template<
typename Derived>
216 template<
typename OtherDerived>
226 #endif // EIGEN_ARRAYBASE_H Generic expression of a matrix where all coefficients are defined by a functor.
internal::traits< Derived >::Scalar Scalar
#define EIGEN_STRONG_INLINE
Base::CoeffReturnType CoeffReturnType
CwiseNullaryOp< internal::scalar_constant_op< Scalar >, PlainObject > ConstantReturnType
ArrayBase StorageBaseType
EIGEN_DEVICE_FUNC CoeffReturnType value() const
Derived & operator+=(const MatrixBase< OtherDerived > &)
NumTraits< Scalar >::Real RealScalar
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator*=(const ArrayBase< OtherDerived > &other)
EIGEN_DEVICE_FUNC ArrayBase< Derived > & array()
static constexpr size_t size(Tuple< Args... > &)
Provides access to the number of elements in a tuple as a compile-time constant expression.
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Derived & operator-=(const MatrixBase< OtherDerived > &)
Base class for all dense matrices, vectors, and arrays.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator=(const ArrayBase &other)
EIGEN_DEVICE_FUNC Derived & setConstant(const Scalar &value)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator=(const Scalar &value)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator-=(const Scalar &scalar)
Expression of an array as a mathematical vector or matrix.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator/=(const ArrayBase< OtherDerived > &other)
Base::CoeffReturnType CoeffReturnType
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
DenseBase< Derived > Base
EIGEN_DEVICE_FUNC const MatrixWrapper< const Derived > matrix() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator+=(const Scalar &scalar)
Base class for all 1D and 2D array, and related expressions.
EIGEN_DEVICE_FUNC MatrixWrapper< Derived > matrix()
ArrayBase Eigen_BaseClassForSpecializationOfGlobalMathFuncImpl
EIGEN_DEVICE_FUNC ArrayBase()
internal::conditional< internal::is_same< typename internal::traits< Derived >::XprKind, MatrixXpr >::value, PlainMatrix, PlainArray >::type PlainObject
The plain matrix or array type corresponding to this expression.
Base::PlainObject PlainObject
internal::traits< Derived >::StorageKind StorageKind
Base class for all dense matrices, vectors, and expressions.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void call_assignment(Dst &dst, const Src &src)
internal::packet_traits< Scalar >::type PacketScalar
EIGEN_DEVICE_FUNC Derived & lazyAssign(const DenseBase< OtherDerived > &other)