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

Method sign

ot/backend.py:413–420  ·  view source on GitHub ↗

r"""Returns an element-wise indication of the sign of a number. This function follows the api from :any:`numpy.sign` See: https://numpy.org/doc/stable/reference/generated/numpy.sign.html

(self, a)

Source from the content-addressed store, hash-verified

411 raise NotImplementedError()
412
413 def sign(self, a):
414 r"""Returns an element-wise indication of the sign of a number.
415
416 This function follows the api from :any:`numpy.sign`
417
418 See: https://numpy.org/doc/stable/reference/generated/numpy.sign.html
419 """
420 raise NotImplementedError()
421
422 def dot(self, a, b):
423 r"""

Callers 12

test_empty_backendFunction · 0.95
signMethod · 0.45
signMethod · 0.45
signMethod · 0.45
signMethod · 0.45
signMethod · 0.45
grad_marg_tvFunction · 0.45
fragmented_hypercubeFunction · 0.45
test_func_backendsFunction · 0.45
plot_SSNB.pyFile · 0.45

Calls

no outgoing calls

Tested by 3

test_empty_backendFunction · 0.76
fragmented_hypercubeFunction · 0.36
test_func_backendsFunction · 0.36