scipp.linspace(dim, start, stop, num, *, endpoint=True, unit=<scipp._scipp.core.DefaultUnit object>, dtype=None)#

Constructs a Variable with num evenly spaced samples, calculated over the interval [start, stop].

  • dim (str) – Dimension label.

  • start (Union[int, float]) – The starting value of the sequence.

  • stop (Union[int, float]) – The end value of the sequence.

  • num (int) – Number of samples to generate.

  • endpoint (bool, default: True) – If True, step is the last returned value. Otherwise, it is not included.

  • unit (Union[Unit, str, None], default: <scipp._scipp.core.DefaultUnit object at 0x7f4add16b330>) – Optional, data unit. Default=dimensionless

  • dtype (Optional[DType], default: None) – Optional, type of underlying data. Default=None, in which case type is inferred from value input.


scipp.geomspace() scipp.logspace() scipp.arange()

Return type