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

Method linspace

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

Source from the content-addressed store, hash-verified

1691 return jnp.std(a, axis=axis)
1692
1693 def linspace(self, start, stop, num, type_as=None):
1694 if type_as is None:
1695 return jnp.linspace(start, stop, num)
1696 else:
1697 return self._change_device(
1698 jnp.linspace(start, stop, num, dtype=type_as.dtype), type_as
1699 )
1700
1701 def meshgrid(self, a, b):
1702 return jnp.meshgrid(a, b)

Callers

nothing calls this directly

Calls 2

_change_deviceMethod · 0.95
linspaceMethod · 0.45

Tested by

no test coverage detected