From 8e05f9cfa1538d76a9d3e01e08ba565bd581806a Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 4 Dec 2009 23:17:14 +0100 Subject: add a DenseBase class for MAtrixBase and ArrayBase and more code factorisation --- test/geo_quaternion.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/geo_quaternion.cpp') diff --git a/test/geo_quaternion.cpp b/test/geo_quaternion.cpp index 9a06a7bd9..239284d64 100644 --- a/test/geo_quaternion.cpp +++ b/test/geo_quaternion.cpp @@ -23,7 +23,6 @@ // License and a copy of the GNU General Public License along with // Eigen. If not, see . -#define EIGEN2_SUPPORT #include "main.h" #include #include @@ -96,7 +95,7 @@ template void quaternion(void) VERIFY_IS_APPROX(-v1.normalized(),(q2.setFromTwoVectors(v1,-v1)*v1).normalized()); if (ei_is_same_type::ret) { - v3 = v1.cwise()+eps; + v3 = v1.array()+eps; VERIFY_IS_APPROX( v3.normalized(),(q2.setFromTwoVectors(v1, v3)*v1).normalized()); VERIFY_IS_APPROX(-v3.normalized(),(q2.setFromTwoVectors(v1,-v3)*v1).normalized()); } -- cgit v1.2.3