jax-js
    Preparing search index...

    Function diagIndicesFrom

    • Return the indices to access the main diagonal of an array.

      The input array must be at least 2D, and all dimensions must be of equal length. Returns a list of ndim index arrays of dtype int32, which can be used to access the main diagonal of the array with Array.slice().

      Parameters

      Returns Array[]