Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb06557

Browse files
committed
MAINT: fix two typos in test_c99complex.c
1 parent 0f57b42 commit eb06557

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

numpy/core/test_c99complex.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#define TYPE float
1212
#define SUFFIX f
1313
#define EPS FLT_EPSILON
14-
#define CLOSE_ATOL 3
14+
#define CLOSE_ATOL 0
1515
#define CLOSE_RTOL 1e-5
1616
#define FMT "%.8e"
1717
#define NPY_PI_2 1.570796326794896619231321691639751442f
@@ -126,7 +126,7 @@ const TYPE NZERO = -1.0 * 0.0;
126126
TYPE der4 = er4; \
127127
TYPE dei4 = ei4; \
128128
TYPE complex x = cpack(dxr, dxi); \
129-
TYPE complex r = func(x); \
129+
TYPE complex r = ADDSUFFIX(func)(x); \
130130
TYPE rr = ADDSUFFIX(creal)(r); \
131131
TYPE ri = ADDSUFFIX(cimag)(r); \
132132
if (!((isequal(rr, der1) && isequal(ri, dei1)) || \
@@ -307,7 +307,7 @@ typedef TYPE (*realfunc)(TYPE);
307307
int check_branch_cut(complexfunc cfunc, TYPE complex x0, TYPE complex dx,
308308
int re_sign, int im_sign, int sig_zero_ok)
309309
{
310-
const TYPE scale = EPS * 1e3;
310+
const TYPE scale = EPS * 1e2;
311311
const TYPE atol = 1e-4;
312312

313313
TYPE complex shift = dx*scale*ADDSUFFIX(cabs)(x0)/ADDSUFFIX(cabs)(dx);

0 commit comments

Comments
 (0)