• Swaps the major axises of stored numbers. It is useful to transform matrices for efficient arithmetic implementation. You can check which the major axis is by function isMajorAxisRow.

    Parameters

    • mat: Readonly<{
          nums: Float64Array;
          strides: Strides;
      }>

      The matrix to interchange axises.

    Returns Readonly<{
        nums: Float64Array;
        strides: Strides;
    }>

    The transformed matrix.

Generated using TypeDoc