MCPcopy
hub / github.com/numpy/numpy / test_longdouble_norm

Method test_longdouble_norm

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

Source from the content-addressed store, hash-verified

1624class TestNorm_NonSystematic:
1625
1626 def test_longdouble_norm(self):
1627 # Non-regression test: p-norm of longdouble would previously raise
1628 # UnboundLocalError.
1629 x = np.arange(10, dtype=np.longdouble)
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

Callers

nothing calls this directly

Calls 1

normFunction · 0.90

Tested by

no test coverage detected