Row-Major vs Column-Major - 5.2 English - 68552

AOCL API Guide (68552)

Document ID
68552
Release Date
2025-12-29
Version
5.2 English
// Row-major (C-style): A[i][j] = A[i*lda + j]
float A_row_major[M][N];

// Column-major (Fortran-style): A[i][j] = A[j*lda + i]
float A_col_major[N][M];