10 #ifndef EIGEN_ARRAYBASE_H 11 #define EIGEN_ARRAYBASE_H 43 #ifndef EIGEN_PARSED_BY_DOXYGEN 70 using Base::const_cast_derived;
77 using Base::operator=;
78 using Base::operator+=;
79 using Base::operator-=;
80 using Base::operator*=;
81 using Base::operator/=;
85 #endif // not EIGEN_PARSED_BY_DOXYGEN 87 #ifndef EIGEN_PARSED_BY_DOXYGEN 104 #endif // not EIGEN_PARSED_BY_DOXYGEN 106 #define EIGEN_CURRENT_STORAGE_BASE_CLASS Eigen::ArrayBase 107 # include "../plugins/CommonCwiseUnaryOps.h" 108 # include "../plugins/MatrixCwiseUnaryOps.h" 109 # include "../plugins/ArrayCwiseUnaryOps.h" 110 # include "../plugins/CommonCwiseBinaryOps.h" 111 # include "../plugins/MatrixCwiseBinaryOps.h" 112 # include "../plugins/ArrayCwiseBinaryOps.h" 113 # ifdef EIGEN_ARRAYBASE_PLUGIN 114 # include EIGEN_ARRAYBASE_PLUGIN 116 #undef EIGEN_CURRENT_STORAGE_BASE_CLASS 127 {
return *
this = derived() + scalar; }
129 {
return *
this = derived() - scalar; }
131 template<
typename OtherDerived>
133 template<
typename OtherDerived>
136 template<
typename OtherDerived>
139 template<
typename OtherDerived>
164 {
EIGEN_STATIC_ASSERT(std::ptrdiff_t(
sizeof(
typename OtherDerived::Scalar))==-1,YOU_CANNOT_MIX_ARRAYS_AND_MATRICES);
return *
this;}
167 {
EIGEN_STATIC_ASSERT(std::ptrdiff_t(
sizeof(
typename OtherDerived::Scalar))==-1,YOU_CANNOT_MIX_ARRAYS_AND_MATRICES);
return *
this;}
174 template<
typename Derived>
175 template<
typename OtherDerived>
180 tmp = other.derived();
188 template<
typename Derived>
189 template<
typename OtherDerived>
194 tmp = other.derived();
202 template<
typename Derived>
203 template<
typename OtherDerived>
208 tmp = other.derived();
216 template<
typename Derived>
217 template<
typename OtherDerived>
222 tmp = other.derived();
228 #endif // EIGEN_ARRAYBASE_H
Generic expression of a matrix where all coefficients are defined by a functor.
internal::traits< Derived >::Index Index
internal::traits< Derived >::Scalar Scalar
#define EIGEN_STRONG_INLINE
Base::CoeffReturnType CoeffReturnType
ArrayBase StorageBaseType
CwiseNullaryOp< internal::scalar_constant_op< Scalar >, Derived > ConstantReturnType
Derived & operator+=(const MatrixBase< OtherDerived > &)
NumTraits< Scalar >::Real RealScalar
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Derived & operator-=(const MatrixBase< OtherDerived > &)
const unsigned int RowMajorBit
Base class for all dense matrices, vectors, and arrays.
Derived & operator/=(const ArrayBase< OtherDerived > &other)
Expression of an array as a mathematical vector or matrix.
Derived & operator-=(const Scalar &scalar)
Derived & lazyAssign(const DenseBase< OtherDerived > &other)
Derived & operator*=(const ArrayBase< OtherDerived > &other)
Base::CoeffReturnType CoeffReturnType
DenseBase< Derived > Base
Derived & operator=(const ArrayBase &other)
Base class for all 1D and 2D array, and related expressions.
ArrayBase Eigen_BaseClassForSpecializationOfGlobalMathFuncImpl
MatrixWrapper< Derived > matrix()
Derived & operator+=(const Scalar &scalar)
General-purpose arrays with easy API for coefficient-wise operations.
ArrayBase< Derived > & array()
internal::traits< Derived >::StorageKind StorageKind
Base class for all dense matrices, vectors, and expressions.
const MatrixWrapper< const Derived > matrix() const
internal::packet_traits< Scalar >::type PacketScalar