17template<
typename _Scalar,
int _Rows,
int _Cols,
int _Options,
int _MaxRows,
int _MaxCols>
18struct traits<
Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols> >
26 max_size = is_dynamic_size_storage ?
Dynamic : _MaxRows*_MaxCols,
28 actual_alignment = ((_Options&
DontAlign)==0) ? default_alignment : 0,
39 RowsAtCompileTime = _Rows,
40 ColsAtCompileTime = _Cols,
41 MaxRowsAtCompileTime = _MaxRows,
42 MaxColsAtCompileTime = _MaxCols,
45 InnerStrideAtCompileTime = 1,
46 OuterStrideAtCompileTime = (Options&
RowMajor) ? ColsAtCompileTime : RowsAtCompileTime,
50 Alignment = actual_alignment
177template<
typename _Scalar,
int _Rows,
int _Cols,
int _Options,
int _MaxRows,
int _MaxCols>
179 :
public PlainObjectBase<Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols> >
221 template<
typename OtherDerived>
234 template<
typename OtherDerived>
241 template<
typename OtherDerived>
268 :
Base(
internal::constructor_without_unaligned_array_assert())
271#if EIGEN_HAS_RVALUE_REFERENCES
294 template <
typename... ArgTypes>
297 :
Base(a0, a1, a2, a3, args...) {}
324#ifndef EIGEN_PARSED_BY_DOXYGEN
332 Base::template _init1<T>(x);
335 template<
typename T0,
typename T1>
340 Base::template _init2<T0,T1>(x,
y);
420 template<
typename OtherDerived>
423 :
Base(other.derived())
433 template<
typename OtherDerived>
436 template<
typename OtherDerived>
441 #ifdef EIGEN_MATRIX_PLUGIN
442 #include EIGEN_MATRIX_PLUGIN
446 template <
typename Derived,
typename OtherDerived,
bool IsVector>
481#define EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, Size, SizeSuffix) \
483typedef Matrix<Type, Size, Size> Matrix##SizeSuffix##TypeSuffix; \
485typedef Matrix<Type, Size, 1> Vector##SizeSuffix##TypeSuffix; \
487typedef Matrix<Type, 1, Size> RowVector##SizeSuffix##TypeSuffix;
489#define EIGEN_MAKE_FIXED_TYPEDEFS(Type, TypeSuffix, Size) \
491typedef Matrix<Type, Size, Dynamic> Matrix##Size##X##TypeSuffix; \
493typedef Matrix<Type, Dynamic, Size> Matrix##X##Size##TypeSuffix;
495#define EIGEN_MAKE_TYPEDEFS_ALL_SIZES(Type, TypeSuffix) \
496EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, 2, 2) \
497EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, 3, 3) \
498EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, 4, 4) \
499EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, Dynamic, X) \
500EIGEN_MAKE_FIXED_TYPEDEFS(Type, TypeSuffix, 2) \
501EIGEN_MAKE_FIXED_TYPEDEFS(Type, TypeSuffix, 3) \
502EIGEN_MAKE_FIXED_TYPEDEFS(Type, TypeSuffix, 4)
510#undef EIGEN_MAKE_TYPEDEFS_ALL_SIZES
511#undef EIGEN_MAKE_TYPEDEFS
512#undef EIGEN_MAKE_FIXED_TYPEDEFS
516#define EIGEN_MAKE_TYPEDEFS(Size, SizeSuffix) \
519template <typename Type> \
520using Matrix##SizeSuffix = Matrix<Type, Size, Size>; \
523template <typename Type> \
524using Vector##SizeSuffix = Matrix<Type, Size, 1>; \
527template <typename Type> \
528using RowVector##SizeSuffix = Matrix<Type, 1, Size>;
530#define EIGEN_MAKE_FIXED_TYPEDEFS(Size) \
533template <typename Type> \
534using Matrix##Size##X = Matrix<Type, Size, Dynamic>; \
537template <typename Type> \
538using Matrix##X##Size = Matrix<Type, Dynamic, Size>;
550template <typename
Type,
int Size>
551using Vector = Matrix<
Type, Size, 1>;
555template <typename
Type,
int Size>
556using RowVector = Matrix<
Type, 1, Size>;
558#undef EIGEN_MAKE_TYPEDEFS
559#undef EIGEN_MAKE_FIXED_TYPEDEFS
#define EIGEN_NOEXCEPT_IF(x)
Definition: Macros.h:1429
#define EIGEN_NOEXCEPT
Definition: Macros.h:1428
#define EIGEN_CONSTEXPR
Definition: Macros.h:797
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:986
#define EIGEN_DENSE_PUBLIC_INTERFACE(Derived)
Definition: Macros.h:1293
#define EIGEN_STRONG_INLINE
Definition: Macros.h:927
#define EIGEN_MAKE_TYPEDEFS(Type, TypeSuffix, Size, SizeSuffix)
Definition: Matrix.h:481
#define EIGEN_MAKE_TYPEDEFS_ALL_SIZES(Type, TypeSuffix)
Definition: Matrix.h:495
#define EIGEN_MAKE_FIXED_TYPEDEFS(Type, TypeSuffix, Size)
Definition: Matrix.h:489
#define EIGEN_INITIALIZE_COEFFS_IF_THAT_OPTION_IS_ENABLED
Definition: PlainObjectBase.h:22
#define EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(TYPE, SIZE)
Definition: StaticAssert.h:157
Base class for all dense matrices, vectors, and arrays.
Definition: DenseBase.h:47
EIGEN_DEVICE_FUNC const T * data() const
Definition: DenseStorage.h:266
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:180
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Matrix(const T &x)
Definition: Matrix.h:329
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Matrix(const Scalar &x, const Scalar &y, const Scalar &z)
Constructs an initialized 3D vector with given coefficients.
Definition: Matrix.h:389
Base::PlainObject PlainObject
Definition: Matrix.h:192
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Matrix(internal::constructor_without_unaligned_array_assert)
Definition: Matrix.h:267
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Matrix()
Default constructor.
Definition: Matrix.h:259
DenseStorage< Scalar, Base::MaxSizeAtCompileTime, Base::RowsAtCompileTime, Base::ColsAtCompileTime, Options > m_storage
Definition: PlainObjectBase.h:131
EIGEN_DEVICE_FUNC Base & base()
Definition: PlainObjectBase.h:138
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Matrix & operator=(const Matrix &other)
Assigns matrices to each other.
Definition: Matrix.h:206
EIGEN_DEVICE_FUNC Matrix(const RotationBase< OtherDerived, ColsAtCompileTime > &r)
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index outerStride() const EIGEN_NOEXCEPT
Definition: Matrix.h:429
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Matrix(const T0 &x, const T1 &y)
Definition: Matrix.h:337
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Matrix & operator=(const EigenBase< OtherDerived > &other)
Copies the generic expression other into *this.
Definition: Matrix.h:236
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index innerStride() const EIGEN_NOEXCEPT
Definition: Matrix.h:427
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Matrix & operator=(const DenseBase< OtherDerived > &other)
Definition: Matrix.h:223
@ Options
Definition: Matrix.h:188
PlainObjectBase< Matrix > Base
Base class typedef.
Definition: Matrix.h:186
EIGEN_DEVICE_FUNC Matrix & operator=(const RotationBase< OtherDerived, ColsAtCompileTime > &r)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & coeffRef(Index rowId, Index colId)
This is an overloaded version of DenseCoeffsBase<Derived,WriteAccessors>::coeffRef(Index,...
Definition: PlainObjectBase.h:175
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Matrix(const EigenBase< OtherDerived > &other)
Copy constructor for generic expressions.
Definition: Matrix.h:422
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Matrix(const Matrix &other)
Copy constructor.
Definition: Matrix.h:414
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Matrix & operator=(const ReturnByValue< OtherDerived > &func)
Definition: Matrix.h:243
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Matrix(const Scalar &x, const Scalar &y, const Scalar &z, const Scalar &w)
Constructs an initialized 4D vector with given coefficients.
Definition: Matrix.h:401
Definition: PlainObjectBase.h:100
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void _check_template_params()
Definition: PlainObjectBase.h:968
DenseStorage< Scalar, Base::MaxSizeAtCompileTime, Base::RowsAtCompileTime, Base::ColsAtCompileTime, Options > m_storage
Definition: PlainObjectBase.h:131
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT
Definition: PlainObjectBase.h:145
internal::traits< Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > >::Scalar Scalar
Definition: PlainObjectBase.h:106
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator=(const PlainObjectBase &other)
This is a special case of the templated operator=.
Definition: PlainObjectBase.h:449
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & _set(const DenseBase< OtherDerived > &other)
Copies the value of the expression other into *this with automatic resizing.
Definition: PlainObjectBase.h:777
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT
Definition: PlainObjectBase.h:143
Definition: ReturnByValue.h:52
Definition: ForwardDeclarations.h:286
Definition: XprHelper.h:272
@ DontAlign
Don't require alignment for the matrix itself (the array of coefficients, if dynamically allocated,...
Definition: Constants.h:325
@ RowMajor
Storage order is row major (see TopicStorageOrders).
Definition: Constants.h:321
const unsigned int PacketAccessBit
Short version: means the expression might be vectorized.
Definition: Constants.h:94
const unsigned int LinearAccessBit
Short version: means the expression can be seen as 1D vector.
Definition: Constants.h:130
const unsigned int DirectAccessBit
Means that the underlying array of coefficients can be directly accessed as a plain strided array.
Definition: Constants.h:155
const unsigned int RowMajorBit
for a matrix, this means that the storage order is row-major.
Definition: Constants.h:66
Type
Definition: Constants.h:471
const Scalar & y
Definition: MathFunctions.h:821
EIGEN_CONSTEXPR Index size(const T &x)
Definition: Meta.h:479
Namespace containing all symbols from the Eigen library.
Definition: Core:141
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
const int Dynamic
This value means that a positive quantity (e.g., a size) is not known at compile-time,...
Definition: Constants.h:22
Definition: Eigen_Colamd.h:50
Definition: BFloat16.h:88
The type used to identify a dense storage.
Definition: Constants.h:507
Common base class for all classes T such that MatrixBase has an operator=(T) and a constructor Matrix...
Definition: EigenBase.h:30
The type used to identify a matrix expression.
Definition: Constants.h:522
Definition: XprHelper.h:242
Definition: PlainObjectBase.h:1001
Definition: DenseStorage.h:25
find_best_packet_helper< Size, typenamepacket_traits< T >::type >::type type
Definition: XprHelper.h:208
Definition: GenericPacketMath.h:107
Definition: XprHelper.h:282
Dense StorageKind
Definition: Matrix.h:35
Eigen::Index StorageIndex
Definition: Matrix.h:36
_Scalar Scalar
Definition: Matrix.h:34
MatrixXpr XprKind
Definition: Matrix.h:37
Definition: ForwardDeclarations.h:17
Definition: GenericPacketMath.h:133
Definition: format.h:1552