jax-js
    Preparing search index...

    Function arange

    • Return evenly spaced values within a given interval.

      This can be called with a varying number of arguments, just like the range() builtin function in Python.

      • arange(stop) is equivalent to arange(0, stop, 1).
      • arange(start, stop) is equivalent to arange(start, stop, 1).
      • arange(start, stop, step) creates an array starting at start, ending before stop, with a step size of step.

      Defaults to an integer data type. This can produce unintended results when using a non-integer step, so prefer linspace() in those cases.

      Parameters

      • start: number
      • Optionalstop: number
      • step: number = 1
      • __namedParameters: { device?: Device; dtype?: DType } = {}

      Returns Array