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

Method trace

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

Source from the content-addressed store, hash-verified

2812 return cp.linalg.solve(a, b)
2813
2814 def trace(self, a):
2815 return cp.trace(a, axis1=-2, axis2=-1)
2816
2817 def inv(self, a):
2818 return cp.linalg.inv(a)

Callers

nothing calls this directly

Calls 1

traceMethod · 0.45

Tested by

no test coverage detected