9.234. SHAPE
9.234 SHAPE — Determine the shape of an array
- Description:
- Determines the shape of an array.
- Standard:
- Fortran 95 and later, with KIND argument Fortran 2003 and later
- Class:
- Inquiry function
- Syntax:
-
RESULT = SHAPE(SOURCE [, KIND])
- Arguments:
-
SOURCE Shall be an array or scalar of any type. If SOURCE is a pointer it must be associated and allocatable arrays must be allocated. KIND (Optional) An INTEGER
initialization expression indicating the kind parameter of the result. - Return value:
- An
INTEGER
array of rank one with as many elements as SOURCE has dimensions. The elements of the r