LBOUND — Lower dimension bounds of an array#
-
LBOUND(ARRAY, DIM, KIND)#
Returns the lower bounds of an array, or a single lower bound along the
DIM
dimension.- Parameters
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.
- Returns
The return value is of type
INTEGER
and of kindKIND
. IfKIND
is absent, the return value is of default integer kind. IfDIM
is absent, the result is an array of the lower bounds ofARRAY
. IfDIM
is present, the result is a scalar corresponding to the lower bound of the array along that dimension. IfARRAY
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.
- Standard:
Fortran 90 and later, with
KIND
argument Fortran 2003 and later- Class:
Inquiry function
- Syntax:
RESULT = LBOUND(ARRAY [, DIM [, KIND]])
- See also:
UBOUND — Upper dimension bounds of an array, LCOBOUND — Lower codimension bounds of an array