mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 15:00:26 +00:00
eqmatrix now actually takes its 'eps' argument into account
This commit is contained in:
parent
156f56feb0
commit
94ccddb873
2
hyper.h
2
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
|
||||
|
@ -327,7 +327,7 @@ inline hyperpoint xspinpush0(ld alpha, ld x) {
|
||||
bool eqmatrix(transmatrix A, transmatrix B, ld eps) {
|
||||
for(int i=0; i<MDIM; i++)
|
||||
for(int j=0; j<MDIM; j++)
|
||||
if(std::abs(A[i][j] - B[i][j]) > 1e-2)
|
||||
if(std::abs(A[i][j] - B[i][j]) > eps)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user