xen-dev-utils
    Preparing search index...

    Function fractionalEye

    • Return a 2-D array with ones on the diagonal and zeros elsewhere.

      Parameters

      • N: number

        Number of rows in the output.

      • OptionalM: number

        Number of columns in the output.

      • k: number = 0

        Index of the diagonal.

      Returns FractionalMonzo[]

      An array where all elements are equal to zero, except for the k-th diagonal, whose values are equal to one.