Row-Major vs Column-Major ordering

Row-Major vs Column-Major ordering

I have noticed that if you have 2D array in Fortran and you use avCreateGraph3D to generate a plot, the plot is "rotated." Fortran uses column-major ordering, thus the array M(x,y) is arranged in memory as

M(1,1)
M(2,1)
M(3,1)
.
.
.
M(nx,1)
M(1,2)
.
.
.

When AV plots the array, it assumes a row-major ordering and renders it with x and y axis exchanged. Other than making the mental mapping that the axes are exchanged, is there a mechanism for telling AV that the array is in column-major order?

2 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

Never mind, I found the Row Major property in GraphState.

Accedere per lasciare un commento.