From 42265258f20e675c9540b22df3d48ceedb05d92f Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 7 Apr 2021 14:46:46 +0200 Subject: [PATCH] hyperpoint:: det function is now based on the largest coordinate, making it more precise --- hyperpoint.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/hyperpoint.cpp b/hyperpoint.cpp index a4ed4378..a234d4d1 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -936,12 +936,14 @@ EX ld det(const transmatrix& T) { ld det = 1; transmatrix M = T; for(int a=0; a abs(M[max_at][a])) + max_at = b; + + if(max_at != a) + for(int c=a; c