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

Method array_equal

ot/backend.py:1010–1018  ·  view source on GitHub ↗

r""" True if two arrays have the same shape and elements, False otherwise. This function follows the api from :any:`numpy.array_equal`. See: https://numpy.org/doc/stable/reference/generated/numpy.array_equal.html

(self, a, b)

Source from the content-addressed store, hash-verified

1008 raise NotImplementedError()
1009
1010 def array_equal(self, a, b):
1011 r"""
1012 True if two arrays have the same shape and elements, False otherwise.
1013
1014 This function follows the api from :any:`numpy.array_equal`.
1015
1016 See: https://numpy.org/doc/stable/reference/generated/numpy.array_equal.html
1017 """
1018 raise NotImplementedError()
1019
1020 def is_floating_point(self, a):
1021 r"""

Callers 9

test_empty_backendFunction · 0.95
array_equalMethod · 0.45
array_equalMethod · 0.45
array_equalMethod · 0.45
array_equalMethod · 0.45
transformMethod · 0.45
inverse_transformMethod · 0.45
transformMethod · 0.45
test_func_backendsFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36