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

Method sqrt

ot/backend.py:472–480  ·  view source on GitHub ↗

r""" Returns the non-ngeative square root of a tensor, element-wise. This function follows the api from :any:`numpy.sqrt` See: https://numpy.org/doc/stable/reference/generated/numpy.sqrt.html

(self, a)

Source from the content-addressed store, hash-verified

470 raise NotImplementedError()
471
472 def sqrt(self, a):
473 r"""
474 Returns the non-ngeative square root of a tensor, element-wise.
475
476 This function follows the api from :any:`numpy.sqrt`
477
478 See: https://numpy.org/doc/stable/reference/generated/numpy.sqrt.html
479 """
480 raise NotImplementedError()
481
482 def power(self, a, exponents):
483 r"""

Callers 15

test_empty_backendFunction · 0.95
lowrank_sinkhornFunction · 0.45
euclidean_distancesFunction · 0.45
distFunction · 0.45
bures_distanceFunction · 0.45
make_2D_samples_gaussFunction · 0.45
sqrtMethod · 0.45

Calls

no outgoing calls