mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-22 12:37:35 +08:00
Fix traits<Quaternion>::IsAligned when using evaluators
This commit is contained in:
parent
0403d49006
commit
8514179aa3
@ -217,7 +217,11 @@ struct traits<Quaternion<_Scalar,_Options> >
|
|||||||
typedef _Scalar Scalar;
|
typedef _Scalar Scalar;
|
||||||
typedef Matrix<_Scalar,4,1,_Options> Coefficients;
|
typedef Matrix<_Scalar,4,1,_Options> Coefficients;
|
||||||
enum{
|
enum{
|
||||||
|
#ifndef EIGEN_TEST_EVALUATORS
|
||||||
IsAligned = internal::traits<Coefficients>::Flags & AlignedBit,
|
IsAligned = internal::traits<Coefficients>::Flags & AlignedBit,
|
||||||
|
#else
|
||||||
|
IsAligned = (internal::traits<Coefficients>::EvaluatorFlags & AlignedBit) != 0,
|
||||||
|
#endif
|
||||||
Flags = IsAligned ? (AlignedBit | LvalueBit) : LvalueBit
|
Flags = IsAligned ? (AlignedBit | LvalueBit) : LvalueBit
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user