10 #ifndef EIGEN_ARRAYBASE_H 11 #define EIGEN_ARRAYBASE_H 43 #ifndef EIGEN_PARSED_BY_DOXYGEN 52 typedef typename internal::packet_traits<Scalar>::type
PacketScalar;
56 using Base::operator*;
68 using Base::const_cast_derived;
74 using Base::lazyAssign;
75 using Base::operator=;
76 using Base::operator+=;
77 using Base::operator-=;
78 using Base::operator*=;
79 using Base::operator/=;
81 typedef typename Base::CoeffReturnType CoeffReturnType;
83 #endif // not EIGEN_PARSED_BY_DOXYGEN 85 #ifndef EIGEN_PARSED_BY_DOXYGEN 102 #endif // not EIGEN_PARSED_BY_DOXYGEN 104 #define EIGEN_CURRENT_STORAGE_BASE_CLASS Eigen::ArrayBase 105 # include "../plugins/CommonCwiseUnaryOps.h" 106 # include "../plugins/MatrixCwiseUnaryOps.h" 107 # include "../plugins/ArrayCwiseUnaryOps.h" 108 # include "../plugins/CommonCwiseBinaryOps.h" 109 # include "../plugins/MatrixCwiseBinaryOps.h" 110 # include "../plugins/ArrayCwiseBinaryOps.h" 111 # ifdef EIGEN_ARRAYBASE_PLUGIN 112 # include EIGEN_ARRAYBASE_PLUGIN 114 #undef EIGEN_CURRENT_STORAGE_BASE_CLASS 124 Derived& operator+=(
const Scalar& scalar)
125 {
return *
this = derived() + scalar; }
126 Derived& operator-=(
const Scalar& scalar)
127 {
return *
this = derived() - scalar; }
129 template<
typename OtherDerived>
131 template<
typename OtherDerived>
134 template<
typename OtherDerived>
137 template<
typename OtherDerived>
162 {EIGEN_STATIC_ASSERT(std::ptrdiff_t(
sizeof(
typename OtherDerived::Scalar))==-1,YOU_CANNOT_MIX_ARRAYS_AND_MATRICES);
return *
this;}
165 {EIGEN_STATIC_ASSERT(std::ptrdiff_t(
sizeof(
typename OtherDerived::Scalar))==-1,YOU_CANNOT_MIX_ARRAYS_AND_MATRICES);
return *
this;}
172 template<
typename Derived>
173 template<
typename OtherDerived>
174 EIGEN_STRONG_INLINE Derived &
178 tmp = other.derived();
186 template<
typename Derived>
187 template<
typename OtherDerived>
188 EIGEN_STRONG_INLINE Derived &
192 tmp = other.derived();
200 template<
typename Derived>
201 template<
typename OtherDerived>
202 EIGEN_STRONG_INLINE Derived &
206 tmp = other.derived();
214 template<
typename Derived>
215 template<
typename OtherDerived>
216 EIGEN_STRONG_INLINE Derived &
220 tmp = other.derived();
226 #endif // EIGEN_ARRAYBASE_H Generic expression of a matrix where all coefficients are defined by a functor.
Definition: CwiseNullaryOp.h:49
ArrayBase StorageBaseType
The base class for a given storage type.
Definition: ArrayBase.h:45
internal::traits< Derived >::Index Index
The type of indices.
Definition: DenseBase.h:60
This is a rough measure of how expensive it is to read one coefficient from this expression.
Definition: DenseBase.h:172
iterative scaling algorithm to equilibrate rows and column norms in matrices
Definition: TestIMU_Common.h:87
This is set to true if either the number of rows or the number of columns is known at compile-time to...
Definition: DenseBase.h:155
Holds information about the various numeric (i.e.
Definition: NumTraits.h:88
This is equal to the number of coefficients, i.e.
Definition: DenseBase.h:115
const unsigned int RowMajorBit
for a matrix, this means that the storage order is row-major.
Definition: Constants.h:53
Base class for all dense matrices, vectors, and arrays.
Definition: DenseBase.h:41
detail::size< coerce_list< Ts... >> size
Get the size of a list (number of elements.)
Definition: Size.h:56
Expression of an array as a mathematical vector or matrix.
Definition: ArrayBase.h:15
This stores expression Flags flags which may or may not be inherited by new expressions constructed f...
Definition: DenseBase.h:162
Definition: SelfCwiseBinaryOp.h:45
Storage order is column major (see TopicStorageOrders).
Definition: Constants.h:264
Definition: XprHelper.h:371
Derived & operator=(const ArrayBase &other)
Special case of the template operator=, in order to prevent the compiler from generating a default op...
Definition: ArrayBase.h:119
Base class for all 1D and 2D array, and related expressions.
Definition: ArrayBase.h:39
MatrixWrapper< Derived > matrix()
Definition: ArrayBase.h:146
Storage order is row major (see TopicStorageOrders).
Definition: Constants.h:266
The number of columns at compile-time.
Definition: DenseBase.h:108
General-purpose arrays with easy API for coefficient-wise operations.
Definition: Array.h:42
This value is equal to the maximum possible number of coefficients that this expression might have...
Definition: DenseBase.h:143
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:48
This value is equal to the maximum possible number of rows that this expression might have...
Definition: DenseBase.h:121
Definition: ForwardDeclarations.h:17
Align the matrix itself if it is vectorizable fixed-size.
Definition: Constants.h:268
double Scalar
Common scalar type.
Definition: FlexibleKalmanBase.h:48
The number of rows at compile-time.
Definition: DenseBase.h:102
This value is equal to the maximum possible number of columns that this expression might have...
Definition: DenseBase.h:132