11 #if defined(EIGEN_TEST_PART_1) 13 #elif defined(EIGEN_TEST_PART_2) 14 #define EIGEN_MAX_STATIC_ALIGN_BYTES 16 15 #define EIGEN_MAX_ALIGN_BYTES 16 16 #elif defined(EIGEN_TEST_PART_3) 17 #define EIGEN_MAX_STATIC_ALIGN_BYTES 32 18 #define EIGEN_MAX_ALIGN_BYTES 32 19 #elif defined(EIGEN_TEST_PART_4) 20 #define EIGEN_MAX_STATIC_ALIGN_BYTES 64 21 #define EIGEN_MAX_ALIGN_BYTES 64 92 #if EIGEN_MAX_STATIC_ALIGN_BYTES>0 94 void construct_at_boundary(
int boundary)
96 char buf[
sizeof(
T)+256];
100 T *
x = ::new(reinterpret_cast<void*>(_buf))
T;
108 #if EIGEN_MAX_STATIC_ALIGN_BYTES>0 109 construct_at_boundary<Vector2f>(4);
110 construct_at_boundary<Vector3f>(4);
111 construct_at_boundary<Vector4f>(16);
112 construct_at_boundary<Vector6f>(4);
114 construct_at_boundary<Vector12f>(16);
115 construct_at_boundary<Matrix2f>(16);
116 construct_at_boundary<Matrix3f>(4);
119 construct_at_boundary<Vector2d>(16);
120 construct_at_boundary<Vector3d>(4);
122 construct_at_boundary<Vector5d>(4);
123 construct_at_boundary<Vector6d>(16);
124 construct_at_boundary<Vector7d>(4);
126 construct_at_boundary<Vector9d>(4);
127 construct_at_boundary<Vector10d>(16);
130 construct_at_boundary<Matrix3d>(4);
133 construct_at_boundary<Vector2cf>(16);
134 construct_at_boundary<Vector3cf>(4);
136 construct_at_boundary<Vector3cd>(16);
139 check_unalignedassert_good<TestNew1>();
140 check_unalignedassert_good<TestNew2>();
141 check_unalignedassert_good<TestNew3>();
143 check_unalignedassert_good<TestNew4>();
144 check_unalignedassert_good<TestNew5>();
145 check_unalignedassert_good<TestNew6>();
146 check_unalignedassert_good<Depends<true> >();
148 #if EIGEN_MAX_STATIC_ALIGN_BYTES>0 #define VERIFY_RAISES_ASSERT(a)
Matrix< double, 9, 1 > Vector9d
#define EIGEN_MAX_ALIGN_BYTES
Matrix< double, 12, 1 > Vector12d
#define EIGEN_MAKE_ALIGNED_OPERATOR_NEW
Matrix< double, 7, 1 > Vector7d
void test_unalignedassert()
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Vector2d m
Matrix< float, 2, 2, DontAlign > m
#define EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF(NeedsToAlign)
Matrix< float, 8, 1 > Vector8f
Matrix< double, 8, 1 > Vector8d
Matrix< float, 12, 1 > Vector12f
Eigen::Triplet< double > T
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Matrix< double, 5, 1 > Vector5d
#define CALL_SUBTEST(FUNC)
Matrix< double, 6, 1 > Vector6d
EIGEN_MAKE_ALIGNED_OPERATOR_NEW float f
void check_unalignedassert_good()
Matrix< float, 6, 1 > Vector6f
The matrix class, also used for vectors and row-vectors.
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
Matrix< double, 10, 1 > Vector10d