jax-js
    Preparing search index...
    • Roll the elements of an array along a specified axis.

      Parameters

      • a: ArrayLike

        Input array.

      • shift: number | number[]

        The number of places by which elements are shifted. If multiple, the shift is specified for each axis individually.

      • axis: null | number | number[] = null

        The axis or axes to roll. If null, the array is flattened, shifted, and then reshaped to its original shape.

      Returns Array