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

Method einsum

ot/backend.py:532–540  ·  view source on GitHub ↗

r""" Evaluates the Einstein summation convention on the operands. This function follows the api from :any:`numpy.einsum` See: https://numpy.org/doc/stable/reference/generated/numpy.einsum.html

(self, subscripts, *operands)

Source from the content-addressed store, hash-verified

530 raise NotImplementedError()
531
532 def einsum(self, subscripts, *operands):
533 r"""
534 Evaluates the Einstein summation convention on the operands.
535
536 This function follows the api from :any:`numpy.einsum`
537
538 See: https://numpy.org/doc/stable/reference/generated/numpy.einsum.html
539 """
540 raise NotImplementedError()
541
542 def sort(self, a, axis=-1):
543 r"""

Callers 15

test_empty_backendFunction · 0.95
euclidean_distancesFunction · 0.45
distFunction · 0.45
proj_SDPFunction · 0.45
exp_buresFunction · 0.45
bures_distanceFunction · 0.45
einsumMethod · 0.45
traceMethod · 0.45
sqrtmMethod · 0.45
einsumMethod · 0.45
sqrtmMethod · 0.45

Calls

no outgoing calls

Tested by 3

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36
test_exp_buresFunction · 0.36