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

Method meshgrid

ot/backend.py:2194–2199  ·  view source on GitHub ↗
(self, a, b)

Source from the content-addressed store, hash-verified

2192 )
2193
2194 def meshgrid(self, a, b):
2195 try:
2196 return torch.meshgrid(a, b, indexing="xy")
2197 except TypeError:
2198 X, Y = torch.meshgrid(a, b)
2199 return X.T, Y.T
2200
2201 def diag(self, a, k=0):
2202 return torch.diag(a, diagonal=k)

Callers

nothing calls this directly

Calls 1

meshgridMethod · 0.45

Tested by

no test coverage detected