MCPcopy
hub / github.com/scipy/scipy / assert_array_almost_equal

Function assert_array_almost_equal

scipy/_lib/_array_api.py:398–404  ·  view source on GitHub ↗

Backwards compatible replacement. In new code, use xp_assert_close instead.

(actual, desired, decimal=6, *args, **kwds)

Source from the content-addressed store, hash-verified

396
397
398def assert_array_almost_equal(actual, desired, decimal=6, *args, **kwds):
399 """Backwards compatible replacement. In new code, use xp_assert_close instead.
400 """
401 rtol, atol = 0, 1.5*10**(-decimal)
402 return xp_assert_close(actual, desired,
403 atol=atol, rtol=rtol, check_dtype=False, check_shape=False,
404 *args, **kwds)
405
406
407def assert_almost_equal(actual, desired, decimal=7, *args, **kwds):

Callers 15

test_real_manylensMethod · 0.90
test_1d_noaxesMethod · 0.90
test_1d_axesMethod · 0.90
test_2d_noaxesMethod · 0.90
test_2d_axesMethod · 0.90
test_basicMethod · 0.90
test_basicMethod · 0.90
test_rank_1_IIRMethod · 0.90
test_rank_1_FIRMethod · 0.90

Calls 1

xp_assert_closeFunction · 0.70

Tested by 15

test_real_manylensMethod · 0.72
test_1d_noaxesMethod · 0.72
test_1d_axesMethod · 0.72
test_2d_noaxesMethod · 0.72
test_2d_axesMethod · 0.72
test_basicMethod · 0.72
test_basicMethod · 0.72
test_rank_1_IIRMethod · 0.72
test_rank_1_FIRMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…