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

Method isfinite

ot/backend.py:1000–1008  ·  view source on GitHub ↗

r""" Tests element-wise for finiteness (not infinity and not Not a Number). This function follows the api from :any:`numpy.isfinite`. See: https://numpy.org/doc/stable/reference/generated/numpy.isfinite.html

(self, a)

Source from the content-addressed store, hash-verified

998 raise NotImplementedError()
999
1000 def isfinite(self, a):
1001 r"""
1002 Tests element-wise for finiteness (not infinity and not Not a Number).
1003
1004 This function follows the api from :any:`numpy.isfinite`.
1005
1006 See: https://numpy.org/doc/stable/reference/generated/numpy.isfinite.html
1007 """
1008 raise NotImplementedError()
1009
1010 def array_equal(self, a, b):
1011 r"""

Callers 12

test_empty_backendFunction · 0.95
is_all_finiteFunction · 0.45
isfiniteMethod · 0.45
isfiniteMethod · 0.45
isfiniteMethod · 0.45
logsumexpMethod · 0.45
isfiniteMethod · 0.45
isfiniteMethod · 0.45
test_func_backendsFunction · 0.45
test_emd_transport_classFunction · 0.45

Calls

no outgoing calls

Tested by 5

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36
test_emd_transport_classFunction · 0.36