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

Method test_longdouble_norm

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

Source from the content-addressed store, hash-verified

1529class TestNorm_NonSystematic:
1530
1531 def test_longdouble_norm(self):
1532 # Non-regression test: p-norm of longdouble would previously raise
1533 # UnboundLocalError.
1534 x = np.arange(10, dtype=np.longdouble)
1535 old_assert_almost_equal(norm(x, ord=3), 12.65, decimal=2)
1536
1537 def test_intmin(self):
1538 # Non-regression test: p-norm of signed integer would previously do

Callers

nothing calls this directly

Calls 1

normFunction · 0.90

Tested by

no test coverage detected