step#

named_arrays.step(start, stop, num, endpoint=True, centers=False)#

Helper function to compute the step size for linspace().

Parameters:
  • start (StartT) – The starting value of the sequence.

  • stop (StopT) – The last value of the sequence, unless endpoint is False.

  • num (NumT) – The number of values in the sequence.

  • endpoint (bool) – Flag controlling whether stop should 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:

StartT | StopT | NumT