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

Method linspace

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

Source from the content-addressed store, hash-verified

3088 return tnp.std(a, axis=axis)
3089
3090 def linspace(self, start, stop, num, type_as=None):
3091 if type_as is None:
3092 return tnp.linspace(start, stop, num)
3093 else:
3094 return tnp.linspace(start, stop, num, dtype=type_as.dtype)
3095
3096 def meshgrid(self, a, b):
3097 return tnp.meshgrid(a, b)

Callers

nothing calls this directly

Calls 1

linspaceMethod · 0.45

Tested by

no test coverage detected