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

Method eigh

ot/backend.py:1420–1421  ·  view source on GitHub ↗
(self, a)

Source from the content-addressed store, hash-verified

1418 return np.einsum("...jk,...kl->...jl", Q, np.swapaxes(V, -1, -2))
1419
1420 def eigh(self, a):
1421 return np.linalg.eigh(a)
1422
1423 def kl_div(self, p, q, mass=False, eps=1e-16):
1424 value = np.sum(p * np.log(p / q + eps))

Callers

nothing calls this directly

Calls 1

eighMethod · 0.45

Tested by

no test coverage detected