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

Method clip

ot/backend.py:582–590  ·  view source on GitHub ↗

Limits the values in a tensor. This function follows the api from :any:`numpy.clip` See: https://numpy.org/doc/stable/reference/generated/numpy.clip.html

(self, a, a_min, a_max)

Source from the content-addressed store, hash-verified

580 raise NotImplementedError()
581
582 def clip(self, a, a_min, a_max):
583 """
584 Limits the values in a tensor.
585
586 This function follows the api from :any:`numpy.clip`
587
588 See: https://numpy.org/doc/stable/reference/generated/numpy.clip.html
589 """
590 raise NotImplementedError()
591
592 def repeat(self, a, repeats, axis=None):
593 r"""

Callers 15

test_empty_backendFunction · 0.95
phiFunction · 0.45
line_search_armijoFunction · 0.45
proj_SDPFunction · 0.45
clipMethod · 0.45
clipMethod · 0.45
clipMethod · 0.45
clipMethod · 0.45
dfFunction · 0.45
quantile_functionFunction · 0.45
ot_cost_on_circleFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36
df2Function · 0.36