mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Warn users against dangerous macros.
Also, mark EIGEN_DEFAULT_TO_ROW_MAJOR as internal (see also bug #422).
This commit is contained in:
@@ -60,10 +60,8 @@ parameter is set to \c RowMajor, then the matrix or array is stored in row-major
|
||||
\c ColMajor, then it is stored in column-major order. This mechanism is used in the above Eigen program to
|
||||
specify the storage order.
|
||||
|
||||
If the storage order is not specified, then Eigen normally defaults to storing the entry in column-major
|
||||
order. This is also the case if one of the convenience typedefs (\c Matrix3f, \c ArrayXXd, etc.) is
|
||||
used. However, it is possible to change the default to row-major order by defining the
|
||||
\c EIGEN_DEFAULT_TO_ROW_MAJOR \ref TopicPreprocessorDirectives "preprocessor directive".
|
||||
If the storage order is not specified, then Eigen defaults to storing the entry in column-major. This is also
|
||||
the case if one of the convenience typedefs (\c Matrix3f, \c ArrayXXd, etc.) is used.
|
||||
|
||||
Matrices and arrays using one storage order can be assigned to matrices and arrays using the other storage
|
||||
order, as happens in the above program when \c Arowmajor is initialized using \c Acolmajor. Eigen will reorder
|
||||
|
||||
Reference in New Issue
Block a user