scipp.linspace
scipp.linspace#
- 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].- Parameters
dim (
str
) – Dimension label.start (
Union
[int
,float
]) – The starting 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=dimensionlessdtype (
Optional
[DType
], default:None
) – Optional, type of underlying data. Default=None, in which case type is inferred from value input.
- Seealso
- Return type