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

Function assert_almost_equal

numpy/linalg/tests/test_linalg.py:43–48  ·  view source on GitHub ↗
(a, b, single_decimal=6, double_decimal=12, **kw)

Source from the content-addressed store, hash-verified

41
42
43def assert_almost_equal(a, b, single_decimal=6, double_decimal=12, **kw):
44 if asarray(a).dtype.type in (single, csingle):
45 decimal = single_decimal
46 else:
47 decimal = double_decimal
48 old_assert_almost_equal(a, b, decimal=decimal, **kw)
49
50
51def get_real_dtype(dtype):

Callers

nothing calls this directly

Calls 1

asarrayFunction · 0.90

Tested by

no test coverage detected