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

Method eigh

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

Source from the content-addressed store, hash-verified

1846 return jnp.einsum("...jk,...kl->...jl", Q, jnp.swapaxes(V, -1, -2))
1847
1848 def eigh(self, a):
1849 return jnp.linalg.eigh(a)
1850
1851 def kl_div(self, p, q, mass=False, eps=1e-16):
1852 value = jnp.sum(p * jnp.log(p / q + eps))

Callers

nothing calls this directly

Calls 1

eighMethod · 0.45

Tested by

no test coverage detected