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

Method abs

ot/backend.py:432–440  ·  view source on GitHub ↗

r""" Computes the absolute value element-wise. This function follows the api from :any:`numpy.absolute` See: https://numpy.org/doc/stable/reference/generated/numpy.absolute.html

(self, a)

Source from the content-addressed store, hash-verified

430 raise NotImplementedError()
431
432 def abs(self, a):
433 r"""
434 Computes the absolute value element-wise.
435
436 This function follows the api from :any:`numpy.absolute`
437
438 See: https://numpy.org/doc/stable/reference/generated/numpy.absolute.html
439 """
440 raise NotImplementedError()
441
442 def exp(self, a):
443 r"""

Callers 15

test_empty_backendFunction · 0.95
_init_lr_sinkhornFunction · 0.45
_LR_DysktraFunction · 0.45
lowrank_sinkhornFunction · 0.45
distFunction · 0.45
co_optimal_transportFunction · 0.45
absMethod · 0.45
absMethod · 0.45
absMethod · 0.45
absMethod · 0.45
absMethod · 0.45

Calls

no outgoing calls