10 #ifndef EIGEN_ARRAYBASE_H
11 #define EIGEN_ARRAYBASE_H
15 template<
typename ExpressionType>
class MatrixWrapper;
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*=;
77 using Base::operator/=;
83 #ifndef EIGEN_PARSED_BY_DOXYGEN
90 #define EIGEN_CURRENT_STORAGE_BASE_CLASS Eigen::ArrayBase
91 #define EIGEN_DOC_UNARY_ADDONS(X,Y)
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>
#define EIGEN_DEFAULT_COPY_CONSTRUCTOR(CLASS)
Definition: Macros.h:1221
#define EIGEN_DEFAULT_EMPTY_CONSTRUCTOR_AND_DESTRUCTOR(Derived)
Definition: Macros.h:1247
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:976
#define EIGEN_STRONG_INLINE
Definition: Macros.h:917
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Definition: StaticAssert.h:127
Base class for all 1D and 2D array, and related expressions.
Definition: ArrayBase.h:41
CwiseNullaryOp< internal::scalar_constant_op< Scalar >, PlainObject > ConstantReturnType
Definition: ArrayBase.h:87
DenseBase< Derived > Base
Definition: ArrayBase.h:54
ArrayBase(const ArrayBase< OtherDerived > &)
Derived & operator+=(const MatrixBase< OtherDerived > &)
Definition: ArrayBase.h:165
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator+=(const Scalar &scalar)
Definition: SelfCwiseBinaryOp.h:25
ArrayBase Eigen_BaseClassForSpecializationOfGlobalMathFuncImpl
Definition: ArrayBase.h:47
NumTraits< Scalar >::Real RealScalar
Definition: ArrayBase.h:52
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator*=(const ArrayBase< OtherDerived > &other)
Definition: ArrayBase.h:205
Base::PlainObject PlainObject
Definition: ArrayBase.h:84
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator-=(const Scalar &scalar)
Definition: SelfCwiseBinaryOp.h:32
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator-=(const ArrayBase< OtherDerived > &other)
Definition: ArrayBase.h:179
internal::traits< Derived >::StorageKind StorageKind
Definition: ArrayBase.h:49
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator=(const ArrayBase &other)
Definition: ArrayBase.h:107
EIGEN_DEVICE_FUNC const ArrayBase< Derived > & array() const
Definition: ArrayBase.h:143
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator*=(const Scalar &other)
Definition: SelfCwiseBinaryOp.h:18
ArrayBase StorageBaseType
Definition: ArrayBase.h:45
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator/=(const Scalar &other)
Definition: SelfCwiseBinaryOp.h:39
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator/=(const ArrayBase< OtherDerived > &other)
Definition: ArrayBase.h:218
internal::packet_traits< Scalar >::type PacketScalar
Definition: ArrayBase.h:51
internal::traits< Derived >::Scalar Scalar
Definition: ArrayBase.h:50
Base::CoeffReturnType CoeffReturnType
Definition: ArrayBase.h:79
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator+=(const ArrayBase< OtherDerived > &other)
Definition: ArrayBase.h:192
EIGEN_DEVICE_FUNC MatrixWrapper< Derived > matrix()
Definition: ArrayBase.h:148
EIGEN_DEVICE_FUNC const MatrixWrapper< const Derived > matrix() const
Definition: ArrayBase.h:150
Derived & operator-=(const MatrixBase< OtherDerived > &)
Definition: ArrayBase.h:168
EIGEN_DEVICE_FUNC ArrayBase< Derived > & array()
Definition: ArrayBase.h:141
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator=(const Scalar &value)
Definition: ArrayBase.h:116
Generic expression of a matrix where all coefficients are defined by a functor.
Definition: CwiseNullaryOp.h:61
Base class for all dense matrices, vectors, and arrays.
Definition: DenseBase.h:47
EIGEN_DEVICE_FUNC Derived & setConstant(const Scalar &value)
Definition: CwiseNullaryOp.h:345
Base::CoeffReturnType CoeffReturnType
Definition: DenseBase.h:96
EIGEN_DEVICE_FUNC CoeffReturnType value() const
Definition: DenseBase.h:526
EIGEN_DEPRECATED EIGEN_DEVICE_FUNC Derived & lazyAssign(const DenseBase< OtherDerived > &other)
@ IsVectorAtCompileTime
Definition: DenseBase.h:153
@ SizeAtCompileTime
Definition: DenseBase.h:113
@ MaxSizeAtCompileTime
Definition: DenseBase.h:141
@ Flags
Definition: DenseBase.h:165
@ ColsAtCompileTime
Definition: DenseBase.h:106
@ MaxColsAtCompileTime
Definition: DenseBase.h:130
@ MaxRowsAtCompileTime
Definition: DenseBase.h:119
@ RowsAtCompileTime
Definition: DenseBase.h:100
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:50
Expression of an array as a mathematical vector or matrix.
Definition: ArrayWrapper.h:141
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void call_assignment(Dst &dst, const Src &src)
Definition: AssignEvaluator.h:834
EIGEN_CONSTEXPR Index size(const T &x)
Definition: Meta.h:479
Namespace containing all symbols from the Eigen library.
Definition: LDLT.h:16
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
Definition: NumTraits.h:233
Definition: AssignmentFunctors.h:46
Definition: AssignmentFunctors.h:110
Definition: AssignmentFunctors.h:89
T type
Definition: GenericPacketMath.h:108
Definition: AssignmentFunctors.h:67
Definition: ForwardDeclarations.h:17