From 05ed02d319fd6fd69ed09ea8ad7e078f05a46a19 Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Wed, 15 Jul 2015 12:06:11 +0200 Subject: [PATCH] Use matrix of static size when possible. --- .../include/CGAL/NewKernel_d/Types/Hyperplane.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/NewKernel_d/include/CGAL/NewKernel_d/Types/Hyperplane.h b/NewKernel_d/include/CGAL/NewKernel_d/Types/Hyperplane.h index e5257ff0153..e633f950a6e 100644 --- a/NewKernel_d/include/CGAL/NewKernel_d/Types/Hyperplane.h +++ b/NewKernel_d/include/CGAL/NewKernel_d/Types/Hyperplane.h @@ -67,9 +67,15 @@ template struct Construct_hyperplane : Store_kernel { template result_type through(Iter f, Iter e)const{ typedef typename R_::LA LA; - // TODO: Use a static dimension when possible - typedef Eigen::Matrix Matrix; - typedef Eigen::Matrix Vec; + typedef typename R_::Default_ambient_dimension D1; + typedef typename R_::Max_ambient_dimension D2; + typedef typename Increment_dimension::type D1i; + typedef typename Increment_dimension::type D2i; + + typedef Eigen::Matrix::value, Eigen_dimension::value, + Eigen::ColMajor|Eigen::AutoAlign, Eigen_dimension::value, Eigen_dimension::value> Matrix; + typedef Eigen::Matrix::value, 1, + Eigen::ColMajor|Eigen::AutoAlign, Eigen_dimension::value, 1> Vec; typename Get_functor::type c(this->kernel()); typename Get_functor >::type cv(this->kernel()); typename Get_functor::type pd(this->kernel());