From 94ccddb8730f288ac5c937fd97f1aadecbee323d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 4 May 2019 18:29:52 +0200 Subject: [PATCH] eqmatrix now actually takes its 'eps' argument into account --- hyper.h | 2 +- hyperpoint.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hyper.h b/hyper.h index c7c4f35c..1782fd81 100644 --- a/hyper.h +++ b/hyper.h @@ -3649,7 +3649,7 @@ hyperpoint xspinpush0(ld alpha, ld x); transmatrix cspin(int a, int b, ld alpha); transmatrix cpush(int cid, ld alpha); -bool eqmatrix(transmatrix A, transmatrix B, ld eps = 1e-6); +bool eqmatrix(transmatrix A, transmatrix B, ld eps = 1e-2); void set_column(transmatrix& T, int i, const hyperpoint& H); #define DF_INIT 0 // always display these diff --git a/hyperpoint.cpp b/hyperpoint.cpp index c0760f3c..5f39ac51 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -327,7 +327,7 @@ inline hyperpoint xspinpush0(ld alpha, ld x) { bool eqmatrix(transmatrix A, transmatrix B, ld eps) { for(int i=0; i 1e-2) + if(std::abs(A[i][j] - B[i][j]) > eps) return false; return true; }