MCPcopy Index your code
hub / github.com/numpy/numpy / test_intmin

Method test_intmin

numpy/linalg/tests/test_linalg.py:1632–1636  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1630 old_assert_almost_equal(norm(x, ord=3), 12.65, decimal=2)
1631
1632 def test_intmin(self):
1633 # Non-regression test: p-norm of signed integer would previously do
1634 # float cast and abs in the wrong order.
1635 x = np.array([-2 ** 31], dtype=np.int32)
1636 old_assert_almost_equal(norm(x, ord=3), 2 ** 31, decimal=5)
1637
1638 def test_complex_high_ord(self):
1639 # gh-4156

Callers

nothing calls this directly

Calls 1

normFunction · 0.90

Tested by

no test coverage detected