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

Method power

ot/backend.py:482–490  ·  view source on GitHub ↗

r""" First tensor elements raised to powers from second tensor, element-wise. This function follows the api from :any:`numpy.power` See: https://numpy.org/doc/stable/reference/generated/numpy.power.html

(self, a, exponents)

Source from the content-addressed store, hash-verified

480 raise NotImplementedError()
481
482 def power(self, a, exponents):
483 r"""
484 First tensor elements raised to powers from second tensor, element-wise.
485
486 This function follows the api from :any:`numpy.power`
487
488 See: https://numpy.org/doc/stable/reference/generated/numpy.power.html
489 """
490 raise NotImplementedError()
491
492 def norm(self, a, axis=None, keepdims=False):
493 r"""

Callers 11

test_empty_backendFunction · 0.95
distFunction · 0.45
powerMethod · 0.45
powerMethod · 0.45
powerMethod · 0.45
powerMethod · 0.45
wasserstein_1dFunction · 0.45
ot_cost_on_circleFunction · 0.45
test_func_backendsFunction · 0.45
plot_Intro_OT.pyFile · 0.45

Calls

no outgoing calls

Tested by 2

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36