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

Method eigh

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

Source from the content-addressed store, hash-verified

2403 return torch.einsum("...jk,...kl->...jl", Q, torch.transpose(V, -1, -2))
2404
2405 def eigh(self, a):
2406 return torch.linalg.eigh(a)
2407
2408 def kl_div(self, p, q, mass=False, eps=1e-16):
2409 value = torch.sum(p * torch.log(p / q + eps))

Callers

nothing calls this directly

Calls 1

eighMethod · 0.45

Tested by

no test coverage detected