Array Syntax
Whole arrays or sections of arrays can be manipulated using array syntax. Examples:
Array intrinsic functions can be passed whole arrays as arguments. Examples:
Other functions are: minval
, minloc
, etc.
Arrays and scalars can be initialized when they are declared. Fortran 90's (/.../)
syntax is used for assigning the contents of an array during declaration. This array syntax is valid in executable statements as well. Alternatively, a variable may be initialized using a separate data
statement, which has its own special syntax for defining the contents of an array. Typically, data
statements are found in a block immediately after the declaration part of a program unit, but they can appear in the executable part of the code, too. Examples: