MCPcopy Create free account
hub / github.com/PythonOT/POT / allclose

Method allclose

ot/backend.py:862–870  ·  view source on GitHub ↗

r""" Returns True if two arrays are element-wise equal within a tolerance. This function follows the api from :any:`numpy.allclose` See: https://numpy.org/doc/stable/reference/generated/numpy.allclose.html

(self, a, b, rtol=1e-05, atol=1e-08, equal_nan=False)

Source from the content-addressed store, hash-verified

860 raise NotImplementedError()
861
862 def allclose(self, a, b, rtol=1e-05, atol=1e-08, equal_nan=False):
863 r"""
864 Returns True if two arrays are element-wise equal within a tolerance.
865
866 This function follows the api from :any:`numpy.allclose`
867
868 See: https://numpy.org/doc/stable/reference/generated/numpy.allclose.html
869 """
870 raise NotImplementedError()
871
872 def dtype_device(self, a):
873 r"""

Callers 15

test_empty_backendFunction · 0.95
allcloseMethod · 0.45
allcloseMethod · 0.45
allcloseMethod · 0.45
allcloseMethod · 0.45
allcloseMethod · 0.45
transformMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_empty_backendFunction · 0.76
assert_allclose_solFunction · 0.36
test_solve_last_stepFunction · 0.36
test_solve_detachFunction · 0.36
test_solve_envelopeFunction · 0.36
test_sinkhorn_backendsFunction · 0.36
test_sinkhorn2_backendsFunction · 0.36
test_ewcaFunction · 0.36
test_sliced_same_projFunction · 0.36
test_sliced_backendFunction · 0.36
test_max_sliced_backendFunction · 0.36