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; }