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

Method linspace

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

Source from the content-addressed store, hash-verified

2648 return cp.std(a, axis=axis)
2649
2650 def linspace(self, start, stop, num, type_as=None):
2651 if type_as is None:
2652 return cp.linspace(start, stop, num)
2653 else:
2654 with cp.cuda.Device(type_as.device):
2655 return cp.linspace(start, stop, num, dtype=type_as.dtype)
2656
2657 def meshgrid(self, a, b):
2658 return cp.meshgrid(a, b)

Callers

nothing calls this directly

Calls 1

linspaceMethod · 0.45

Tested by

no test coverage detected