MCPcopy
hub / github.com/numpy/numpy / assert_almost_equal

Function assert_almost_equal

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

Source from the content-addressed store, hash-verified

65
66
67def assert_almost_equal(a, b, single_decimal=6, double_decimal=12, **kw):
68 if asarray(a).dtype.type in (single, csingle):
69 decimal = single_decimal
70 else:
71 decimal = double_decimal
72 old_assert_almost_equal(a, b, decimal=decimal, **kw)
73
74
75def get_real_dtype(dtype):

Callers

nothing calls this directly

Calls 1

asarrayFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…