arraystorage

The order the elements of an array are stored in.

Declaration

Syntax

arraystorage = RowMajor | ColMajor

Values

Value

Meaning

RowMajor

the last subscript varies fastest, as in C and NumPy.

ColMajor

the first subscript varies fastest, as in Fortran.

Return values

None. An enumeration value is not evaluated.

Description

Fortran arrays are ColMajor. The value is carried on ArrayConstant, ArrayConstructor and ArrayItem so that data coming from a frontend with the other convention keeps its own order rather than being silently transposed.

See Also

ArrayConstant, ArrayConstructor, ArrayItem, Array