MCPcopy Create free account
hub / github.com/numpy/numpy / _check_inf_inf

Method _check_inf_inf

numpy/core/tests/test_umath_complex.py:82–87  ·  view source on GitHub ↗
(dummy)

Source from the content-addressed store, hash-verified

80
81 # cexp(inf + inf i) is +-inf + NaNi and raised invalid FPU ex.
82 def _check_inf_inf(dummy):
83 msgform = "cexp(inf, inf) is (%f, %f), expected (+-inf, nan)"
84 with np.errstate(invalid='ignore'):
85 z = f(np.array(complex(np.inf, np.inf)))
86 if not np.isinf(z.real) or not np.isnan(z.imag):
87 raise AssertionError(msgform % (z.real, z.imag))
88
89 _check_inf_inf(None)
90

Callers

nothing calls this directly

Calls 1

fFunction · 0.85

Tested by

no test coverage detected