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

Method linspace

ot/backend.py:1285–1289  ·  view source on GitHub ↗
(self, start, stop, num, type_as=None)

Source from the content-addressed store, hash-verified

1283 return np.std(a, axis=axis)
1284
1285 def linspace(self, start, stop, num, type_as=None):
1286 if type_as is None:
1287 return np.linspace(start, stop, num)
1288 else:
1289 return np.linspace(start, stop, num, dtype=type_as.dtype)
1290
1291 def meshgrid(self, a, b):
1292 return np.meshgrid(a, b)

Callers

nothing calls this directly

Calls 1

linspaceMethod · 0.45

Tested by

no test coverage detected