diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-28 15:56:36 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-28 15:56:36 +0000 |
commit | b06cbe0aaab4156d7796d06083b29f0029caacf9 (patch) | |
tree | fb979fb4cf4f8052c8cc66b1ec9516d91fcd859b /test/geo_hyperplane.cpp | |
parent | ebb9b35b8ba326e77933f1a8283f5f62decadf57 (diff) | |
parent | bc0f5df265caa21a2120c22453655a7fcc941991 (diff) | |
download | eigen-b06cbe0aaab4156d7796d06083b29f0029caacf9.tar.gz |
Snap for 8512216 from bc0f5df265caa21a2120c22453655a7fcc941991 to tm-frc-media-releaset_frc_med_330443030android13-frc-media-release
Change-Id: I3ce64ce71cedb6c72ed116ba550b07bc9d82743c
Diffstat (limited to 'test/geo_hyperplane.cpp')
-rw-r--r-- | test/geo_hyperplane.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/geo_hyperplane.cpp b/test/geo_hyperplane.cpp index 27892850d..44b2f2aec 100644 --- a/test/geo_hyperplane.cpp +++ b/test/geo_hyperplane.cpp @@ -19,7 +19,6 @@ template<typename HyperplaneType> void hyperplane(const HyperplaneType& _plane) Hyperplane.h */ using std::abs; - typedef typename HyperplaneType::Index Index; const Index dim = _plane.dim(); enum { Options = HyperplaneType::Options }; typedef typename HyperplaneType::Scalar Scalar; @@ -118,7 +117,7 @@ template<typename Scalar> void lines() VERIFY_IS_APPROX(result, center); // check conversions between two types of lines - PLine pl(line_u); // gcc 3.3 will commit suicide if we don't name this variable + PLine pl(line_u); // gcc 3.3 will crash if we don't name this variable. HLine line_u2(pl); CoeffsType converted_coeffs = line_u2.coeffs(); if(line_u2.normal().dot(line_u.normal())<Scalar(0)) @@ -173,15 +172,10 @@ template<typename Scalar> void hyperplane_alignment() VERIFY_IS_APPROX(p1->coeffs(), p2->coeffs()); VERIFY_IS_APPROX(p1->coeffs(), p3->coeffs()); - - #if defined(EIGEN_VECTORIZE) && EIGEN_MAX_STATIC_ALIGN_BYTES > 0 - if(internal::packet_traits<Scalar>::Vectorizable && internal::packet_traits<Scalar>::size<=4) - VERIFY_RAISES_ASSERT((::new(reinterpret_cast<void*>(array3u)) Plane3a)); - #endif } -void test_geo_hyperplane() +EIGEN_DECLARE_TEST(geo_hyperplane) { for(int i = 0; i < g_repeat; i++) { CALL_SUBTEST_1( hyperplane(Hyperplane<float,2>()) ); |