10 #ifndef EIGEN_ARRAYBASE_H
11 #define EIGEN_ARRAYBASE_H
15 template<
typename ExpressionType>
class MatrixWrapper;
43 #ifndef EIGEN_PARSED_BY_DOXYGEN
51 typedef typename internal::packet_traits<Scalar>::type PacketScalar;
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/=;
79 typedef typename Base::CoeffReturnType CoeffReturnType;
81 #endif // not EIGEN_PARSED_BY_DOXYGEN
83 #ifndef EIGEN_PARSED_BY_DOXYGEN
88 #endif // not 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
106 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
109 internal::call_assignment(derived(), other.derived());
115 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
119 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
120 Derived& operator+=(
const Scalar& scalar);
121 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
122 Derived& operator-=(
const Scalar& scalar);
124 template<
typename OtherDerived>
125 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
127 template<
typename OtherDerived>
128 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
131 template<
typename OtherDerived>
132 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
135 template<
typename OtherDerived>
136 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
156 EIGEN_DEFAULT_COPY_CONSTRUCTOR(ArrayBase)
157 EIGEN_DEFAULT_EMPTY_CONSTRUCTOR_AND_DESTRUCTOR(ArrayBase)
160 explicit ArrayBase(
Index);
162 template<
typename OtherDerived>
explicit ArrayBase(
const ArrayBase<OtherDerived>&);
165 template<
typename OtherDerived> Derived& operator+=(
const MatrixBase<OtherDerived>& )
166 {EIGEN_STATIC_ASSERT(std::ptrdiff_t(
sizeof(
typename OtherDerived::Scalar))==-1,YOU_CANNOT_MIX_ARRAYS_AND_MATRICES);
return *
this;}
168 template<
typename OtherDerived> Derived& operator-=(
const MatrixBase<OtherDerived>& )
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>
178 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived &
189 template<
typename Derived>
190 template<
typename OtherDerived>
191 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived &
202 template<
typename Derived>
203 template<
typename OtherDerived>
204 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived &
215 template<
typename Derived>
216 template<
typename OtherDerived>
217 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived &
226 #endif // EIGEN_ARRAYBASE_H
@ RowsAtCompileTime
Definition: DenseBase.h:100
Namespace containing all symbols from the Eigen library.
Definition: LDLT.h:16
@ SizeAtCompileTime
Definition: DenseBase.h:113
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator=(const ArrayBase &other)
Definition: ArrayBase.h:107
EIGEN_DEVICE_FUNC Derived & setConstant(const Scalar &value)
Definition: CwiseNullaryOp.h:345
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator-=(const ArrayBase< OtherDerived > &other)
Definition: ArrayBase.h:179
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator+=(const ArrayBase< OtherDerived > &other)
Definition: ArrayBase.h:192
Generic expression of a matrix where all coefficients are defined by a functor.
Definition: CwiseNullaryOp.h:61
@ MaxColsAtCompileTime
Definition: DenseBase.h:130
@ IsVectorAtCompileTime
Definition: DenseBase.h:153
EIGEN_DEPRECATED EIGEN_DEVICE_FUNC Derived & lazyAssign(const DenseBase< OtherDerived > &other)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator/=(const ArrayBase< OtherDerived > &other)
Definition: ArrayBase.h:218
Definition: AssignmentFunctors.h:89
@ MaxSizeAtCompileTime
Definition: DenseBase.h:141
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator*=(const ArrayBase< OtherDerived > &other)
Definition: ArrayBase.h:205
Base class for all 1D and 2D array, and related expressions.
Definition: ArrayBase.h:41
Definition: AssignmentFunctors.h:110
@ MaxRowsAtCompileTime
Definition: DenseBase.h:119
Definition: ForwardDeclarations.h:17
Base class for all dense matrices, vectors, and arrays.
Definition: DenseBase.h:47
ArrayBase StorageBaseType
Definition: ArrayBase.h:45
@ ColsAtCompileTime
Definition: DenseBase.h:106
Definition: AssignmentFunctors.h:67
@ Flags
Definition: DenseBase.h:165
Definition: AssignmentFunctors.h:46
EIGEN_DEVICE_FUNC MatrixWrapper< Derived > matrix()
Definition: ArrayBase.h:148
Expression of an array as a mathematical vector or matrix.
Definition: ArrayWrapper.h:141
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator=(const Scalar &value)
Definition: ArrayBase.h:116
Holds information about the various numeric (i.e. scalar) types allowed by Eigen.
Definition: NumTraits.h:213
EIGEN_DEVICE_FUNC CoeffReturnType value() const
Definition: DenseBase.h:486
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:42