From d218be48be1081f61b5ee4b6032a70938a20a88f Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Tue, 6 May 2014 16:04:51 +0200 Subject: [PATCH] Test Contained_in_simplex --- .../include/CGAL/NewKernel_d/LA_eigen/LA.h | 3 ++- .../CGAL/NewKernel_d/function_objects_cartesian.h | 15 +++++++-------- NewKernel_d/test/NewKernel_d/Epick_d.cpp | 2 ++ 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/NewKernel_d/include/CGAL/NewKernel_d/LA_eigen/LA.h b/NewKernel_d/include/CGAL/NewKernel_d/LA_eigen/LA.h index 02c92d0ada3..3b6a0603a0b 100644 --- a/NewKernel_d/include/CGAL/NewKernel_d/LA_eigen/LA.h +++ b/NewKernel_d/include/CGAL/NewKernel_d/LA_eigen/LA.h @@ -117,7 +117,8 @@ template struct LA_eigen { // m*a==b template static bool solve(DV&a, DM const&m, V const& b){ - a = m.colPivHouseholderQr().solve(b); + //a = m.colPivHouseholderQr().solve(b); + a = m.fullPivLu().solve(b); return b.isApprox(m*a); } diff --git a/NewKernel_d/include/CGAL/NewKernel_d/function_objects_cartesian.h b/NewKernel_d/include/CGAL/NewKernel_d/function_objects_cartesian.h index a4cd9487803..6b9ae49d3c9 100644 --- a/NewKernel_d/include/CGAL/NewKernel_d/function_objects_cartesian.h +++ b/NewKernel_d/include/CGAL/NewKernel_d/function_objects_cartesian.h @@ -353,7 +353,8 @@ template struct Contained_in_simplex : private Store_kernel { typedef R_ R; typedef typename Get_type::type Point; // Computing a sensible Uncertain<*> is not worth it - typedef typename Get_type::type result_type; + // typedef typename Get_type::type result_type; + typedef bool result_type; typedef typename Increment_dimension::type D1; typedef typename Increment_dimension::type D2; typedef typename R::LA::template Rebind_dimension::Other LA; @@ -375,20 +376,18 @@ template struct Contained_in_simplex : private Store_kernel { for(int j=0;j