step#
- named_arrays.step(start, stop, num, endpoint=True, centers=False)#
Helper function to compute the step size for
linspace().- Parameters:
start (int | float | complex | ndarray | Quantity | AbstractArray) – The starting value of the sequence.
stop (int | float | complex | ndarray | Quantity | AbstractArray) – The last value of the sequence, unless
endpointisFalse.num (int | AbstractArray) – The number of values in the sequence.
endpoint (bool) – Flag controlling whether
stopshould be included in the sequence.centers (bool) – Flag controlling whether the returned values should be on cell centers. The default is to return values on cell edges.
- Return type:
int | float | complex | ndarray | Quantity | AbstractExplicitArray