Next: Visualisation of Arrays
Up: Arrays
Previous: Arrays
Examples of declarations:
REAL, DIMENSION(15) :: A
REAL, DIMENSION(-4:0,0:2) :: B
REAL :: C(5,3), D(0:4,0:2) ! Shorthand
The above are explicit-shape arrays.
Terminology:
- rank -- number of dimensions;
- bounds -- upper and lower limits of indices;
- extent -- number of elements in dimension;
- size -- either the total number of elements or, if
particular dimension is specified, the number of elements in that
dimension;
- shape -- rank and extents;
- conformable -- same shape, B and C and D.
For more information, click here
Now try this question
Next: Visualisation of Arrays
Up: Arrays
Previous: Arrays
Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996Not for commercial use.