48 template<
typename _Scalar,
int _Rows,
int _Cols,
int _Options,
int _MaxRows,
int _MaxCols>
49 struct traits<Array<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols> > :
traits<Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols> >
51 typedef ArrayXpr XprKind;
52 typedef ArrayBase<Array<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols> > XprBase;
56 template<
typename _Scalar,
int _Rows,
int _Cols,
int _Options,
int _MaxRows,
int _MaxCols>
58 :
public PlainObjectBase<Array<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols> >
69 template <
typename Derived,
typename OtherDerived,
bool IsVector>
70 friend struct internal::conservative_resize_like_impl;
86 template<
typename OtherDerived>
101 template<
typename OtherDerived>
127 Base::_check_template_params();
131 #ifndef EIGEN_PARSED_BY_DOXYGEN
134 Array(internal::constructor_without_unaligned_array_assert)
135 :
Base(internal::constructor_without_unaligned_array_assert())
137 Base::_check_template_params();
151 Base::_check_template_params();
158 #ifndef EIGEN_PARSED_BY_DOXYGEN
159 template<
typename T0,
typename T1>
162 Base::_check_template_params();
163 this->
template _init2<T0,T1>(x,
y);
179 Base::_check_template_params();
188 Base::_check_template_params();
199 template<
typename OtherDerived>
203 Base::_check_template_params();
210 Base::_check_template_params();
214 template<
typename OtherDerived>
217 Base::_check_template_params();
223 template<
typename OtherDerived>
225 :
Base(other.derived().
rows() * other.derived().
cols(), other.derived().
rows(), other.derived().
cols())
227 Base::_check_template_params();
235 template<
typename OtherDerived>
237 { this->
_swap(other.derived()); }
242 #ifdef EIGEN_ARRAY_PLUGIN
243 #include EIGEN_ARRAY_PLUGIN
248 template<
typename MatrixType,
typename OtherDerived,
bool SwapPo
inters>
249 friend struct internal::matrix_swap_impl;
271 #define EIGEN_MAKE_ARRAY_TYPEDEFS(Type, TypeSuffix, Size, SizeSuffix) \
273 typedef Array<Type, Size, Size> Array##SizeSuffix##SizeSuffix##TypeSuffix; \
275 typedef Array<Type, Size, 1> Array##SizeSuffix##TypeSuffix;
277 #define EIGEN_MAKE_ARRAY_FIXED_TYPEDEFS(Type, TypeSuffix, Size) \
279 typedef Array<Type, Size, Dynamic> Array##Size##X##TypeSuffix; \
281 typedef Array<Type, Dynamic, Size> Array##X##Size##TypeSuffix;
283 #define EIGEN_MAKE_ARRAY_TYPEDEFS_ALL_SIZES(Type, TypeSuffix) \
284 EIGEN_MAKE_ARRAY_TYPEDEFS(Type, TypeSuffix, 2, 2) \
285 EIGEN_MAKE_ARRAY_TYPEDEFS(Type, TypeSuffix, 3, 3) \
286 EIGEN_MAKE_ARRAY_TYPEDEFS(Type, TypeSuffix, 4, 4) \
287 EIGEN_MAKE_ARRAY_TYPEDEFS(Type, TypeSuffix, Dynamic, X) \
288 EIGEN_MAKE_ARRAY_FIXED_TYPEDEFS(Type, TypeSuffix, 2) \
289 EIGEN_MAKE_ARRAY_FIXED_TYPEDEFS(Type, TypeSuffix, 3) \
290 EIGEN_MAKE_ARRAY_FIXED_TYPEDEFS(Type, TypeSuffix, 4)
298 #undef EIGEN_MAKE_ARRAY_TYPEDEFS_ALL_SIZES
299 #undef EIGEN_MAKE_ARRAY_TYPEDEFS
301 #undef EIGEN_MAKE_ARRAY_TYPEDEFS_LARGE
303 #define EIGEN_USING_ARRAY_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, SizeSuffix) \
304 using Eigen::Matrix##SizeSuffix##TypeSuffix; \
305 using Eigen::Vector##SizeSuffix##TypeSuffix; \
306 using Eigen::RowVector##SizeSuffix##TypeSuffix;
308 #define EIGEN_USING_ARRAY_TYPEDEFS_FOR_TYPE(TypeSuffix) \
309 EIGEN_USING_ARRAY_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 2) \
310 EIGEN_USING_ARRAY_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 3) \
311 EIGEN_USING_ARRAY_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 4) \
312 EIGEN_USING_ARRAY_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, X) \
314 #define EIGEN_USING_ARRAY_TYPEDEFS \
315 EIGEN_USING_ARRAY_TYPEDEFS_FOR_TYPE(i) \
316 EIGEN_USING_ARRAY_TYPEDEFS_FOR_TYPE(f) \
317 EIGEN_USING_ARRAY_TYPEDEFS_FOR_TYPE(d) \
318 EIGEN_USING_ARRAY_TYPEDEFS_FOR_TYPE(cf) \
319 EIGEN_USING_ARRAY_TYPEDEFS_FOR_TYPE(cd)
323 #endif // EIGEN_ARRAY_H