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

Method allclose

ot/backend.py:2762–2763  ·  view source on GitHub ↗
(self, a, b, rtol=1e-05, atol=1e-08, equal_nan=False)

Source from the content-addressed store, hash-verified

2760 return a.copy()
2761
2762 def allclose(self, a, b, rtol=1e-05, atol=1e-08, equal_nan=False):
2763 return cp.allclose(a, b, rtol=rtol, atol=atol, equal_nan=equal_nan)
2764
2765 def dtype_device(self, a):
2766 return a.dtype, a.device

Callers

nothing calls this directly

Calls 1

allcloseMethod · 0.45

Tested by

no test coverage detected