Returns the lower bounds of an array, or a single lower bound along the DIM dimension.
Fortran 95 and later, with KIND argument Fortran 2003 and later
Inquiry function
RESULT = LBOUND(ARRAY [, DIM [, KIND]])
ARRAY | Shall be an array, of any type. |
DIM | (Optional) Shall be a scalar INTEGER . |
KIND | (Optional) An INTEGER initialization expression indicating the kind parameter of the result. |
The return value is of type INTEGER
and of kind KIND. If KIND is absent, the return value is of default integer kind. If DIM is absent, the result is an array of the lower bounds of ARRAY. If DIM is present, the result is a scalar corresponding to the lower bound of the array along that dimension. If ARRAY is an expression rather than a whole array or array structure component, or if it has a zero extent along the relevant dimension, the lower bound is taken to be 1.
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-7.1.0/gfortran/LBOUND.html