@@ -19,30 +19,28 @@ typedef float Real;
1919#define REAL_MIN FLT_MIN
2020#endif
2121
22- namespace PBD
23- {
24- using Vector2r = Eigen::Matrix<Real, 2 , 1 >;
25- using Vector3r = Eigen::Matrix<Real, 3 , 1 >;
26- using Vector4r = Eigen::Matrix<Real, 4 , 1 >;
27- using Matrix2r = Eigen::Matrix<Real, 2 , 2 >;
28- using Matrix3r = Eigen::Matrix<Real, 3 , 3 >;
29- using Matrix4r = Eigen::Matrix<Real, 4 , 4 >;
30- using AlignedBox2r = Eigen::AlignedBox<Real, 2 >;
31- using AlignedBox3r = Eigen::AlignedBox<Real, 3 >;
32- using AngleAxisr = Eigen::AngleAxis<Real>;
33- using Quaternionr = Eigen::Quaternion<Real>;
34-
35- // allocators to be used in STL collections containing Eigen structures
36- using Alloc_Vector2r = Eigen::aligned_allocator<Vector2r>;
37- using Alloc_Vector3r = Eigen::aligned_allocator<Vector3r>;
38- using Alloc_Vector4r = Eigen::aligned_allocator<Vector4r>;
39- using Alloc_Matrix2r = Eigen::aligned_allocator<Matrix2r>;
40- using Alloc_Matrix3r = Eigen::aligned_allocator<Matrix3r>;
41- using Alloc_Matrix4r = Eigen::aligned_allocator<Matrix4r>;
42- using Alloc_AlignedBox2r = Eigen::aligned_allocator<AlignedBox2r>;
43- using Alloc_AlignedBox3r = Eigen::aligned_allocator<AlignedBox3r>;
44- using Alloc_AngleAxisr = Eigen::aligned_allocator<AngleAxisr>;
45- using Alloc_Quaternionr = Eigen::aligned_allocator<Quaternionr>;
22+ using Vector2r = Eigen ::Matrix < Real , 2 , 1 > ;
23+ using Vector3r = Eigen ::Matrix < Real , 3 , 1 > ;
24+ using Vector4r = Eigen ::Matrix < Real , 4 , 1 > ;
25+ using Matrix2r = Eigen ::Matrix < Real , 2 , 2 > ;
26+ using Matrix3r = Eigen ::Matrix < Real , 3 , 3 > ;
27+ using Matrix4r = Eigen ::Matrix < Real , 4 , 4 > ;
28+ using AlignedBox2r = Eigen ::AlignedBox < Real , 2 > ;
29+ using AlignedBox3r = Eigen ::AlignedBox < Real , 3 > ;
30+ using AngleAxisr = Eigen ::AngleAxis < Real > ;
31+ using Quaternionr = Eigen ::Quaternion < Real > ;
32+
33+ //allocators to be used in STL collections containing Eigen structures
34+ using Alloc_Vector2r = Eigen ::aligned_allocator < Vector2r > ;
35+ using Alloc_Vector3r = Eigen ::aligned_allocator < Vector3r > ;
36+ using Alloc_Vector4r = Eigen ::aligned_allocator < Vector4r > ;
37+ using Alloc_Matrix2r = Eigen ::aligned_allocator < Matrix2r > ;
38+ using Alloc_Matrix3r = Eigen ::aligned_allocator < Matrix3r > ;
39+ using Alloc_Matrix4r = Eigen ::aligned_allocator < Matrix4r > ;
40+ using Alloc_AlignedBox2r = Eigen ::aligned_allocator < AlignedBox2r > ;
41+ using Alloc_AlignedBox3r = Eigen ::aligned_allocator < AlignedBox3r > ;
42+ using Alloc_AngleAxisr = Eigen ::aligned_allocator < AngleAxisr > ;
43+ using Alloc_Quaternionr = Eigen ::aligned_allocator < Quaternionr > ;
4644
4745#if EIGEN_ALIGN
4846 #define PDB_MAKE_ALIGNED_OPERATOR_NEW EIGEN_MAKE_ALIGNED_OPERATOR_NEW
@@ -89,7 +87,7 @@ namespace PBD
8987#endif
9088
9189#endif
92- }
90+
9391
9492#endif
9593
0 commit comments