wgblas
    Preparing search index...

    Function toColumnMajor

    • Transposes a flat row-major rows×cols array into flat column-major storage (lda = rows) — column-major storage of A is just row-major storage of Aᵀ. Used so the Level 2 and 3 benchmarks can feed genuinely column-major data to GpuMatrix.from(..., "column-major"), matching cuBLAS's native layout.

      Type Parameters

      • T extends Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike>

      Parameters

      • A: T

        row-major, rows×cols, densely packed (lda = cols)

      • rows: number

        number of logical rows

      • cols: number

        number of logical columns

      Returns T

      the same array type, column-major, rows×cols, densely packed (lda = rows)