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 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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

Leave a Comment

Please sign in to add a comment. Not a member? Join today