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

Method logsumexp

ot/backend.py:462–470  ·  view source on GitHub ↗

r""" Computes the log of the sum of exponentials of input elements. This function follows the api from :any:`scipy.special.logsumexp` See: https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.logsumexp.html

(self, a, axis=None, keepdims=False)

Source from the content-addressed store, hash-verified

460 raise NotImplementedError()
461
462 def logsumexp(self, a, axis=None, keepdims=False):
463 r"""
464 Computes the log of the sum of exponentials of input elements.
465
466 This function follows the api from :any:`scipy.special.logsumexp`
467
468 See: https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.logsumexp.html
469 """
470 raise NotImplementedError()
471
472 def sqrt(self, a):
473 r"""

Callers 15

test_empty_backendFunction · 0.95
solveFunction · 0.45
logsumexpMethod · 0.45
logsumexpMethod · 0.45
logsumexpMethod · 0.45
_barycenter_sinkhorn_logFunction · 0.45
_barycenter_debiased_logFunction · 0.45
convol_imgsFunction · 0.45
empirical_sinkhornFunction · 0.45
sinkhorn_logFunction · 0.45

Calls

no outgoing calls

Tested by 6

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36
test_LazyTensor_reduceFunction · 0.36