romcomma.user.functions.linspace§

linspace(start, stop, shape)[source]§

A multi-dimensional version of np.linspace, distributing values throughout shape.

Parameters:
  • start (float) – Start value, which will be returned in linspace(...)[0,...,0].

  • stop (float) – Stop value, which will be returned in linspace(...)[-1,...,-1].

  • shape (Sequence[int]) – The linspace.shape to return.

Return type:

ndarray

Returns: np.reshape(np.linspace(start, stop, int(np.prod(shape)), endpoint=True), newshape=shape).