• Computes flat index for a given location (multidimentionsal index) in a Tensor/multidimensional array.

    Parameters

    • locs: number[]

      Location in the tensor.

    • rank: number

      Rank of the tensor.

    • strides: number[]

      Tensor strides.

    Returns number

Generated using TypeDoc