iarray.linspace(start: Union[int, float], stop: Union[int, float], /, num: int, *, shape: Optional[Sequence] = None, device: Optional[Literal['cpu']] = None, endpoint: bool = True, cfg: Optional[Config] = None, **kwargs) IArray#

Return evenly spaced numbers over a specified interval. If endpoint is False, the numbers will be generated over the half-open interval [start, stop).

shape, device, cfg and kwargs are the same than for empty().

start, stop are the same as in np.linspace.


The new array.

Return type

IArray container

See also


Create an empty array.