Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ test_complex
Method
test_complex
numpy/lib/tests/test_function_base.py:2471–2474 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
2469
assert_array_equal(exp, res)
2470
2471
def
test_complex(self):
2472
a = np.array([0, 1 + 2j])
2473
with
pytest.raises(TypeError, match=
"i0 not supported for complex values"
):
2474
res = i0(a)
2475
2476
2477
class
TestKaiser:
Callers
nothing calls this directly
Calls
1
i0
Function · 0.90
Tested by
no test coverage detected