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

Method log

ot/backend.py:452–460  ·  view source on GitHub ↗

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

(self, a)

Source from the content-addressed store, hash-verified

450 raise NotImplementedError()
451
452 def log(self, a):
453 r"""
454 Computes the natural logarithm, element-wise.
455
456 This function follows the api from :any:`numpy.log`
457
458 See: https://numpy.org/doc/stable/reference/generated/numpy.log.html
459 """
460 raise NotImplementedError()
461
462 def logsumexp(self, a, axis=None, keepdims=False):
463 r"""

Callers 12

test_empty_backendFunction · 0.95
logMethod · 0.45
kl_divMethod · 0.45
logMethod · 0.45
kl_divMethod · 0.45
logMethod · 0.45
kl_divMethod · 0.45
logMethod · 0.45
logsumexpMethod · 0.45
kl_divMethod · 0.45
logMethod · 0.45
kl_divMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_empty_backendFunction · 0.76