]>
Commit | Line | Data |
---|---|---|
c63539ff ML |
1 | .. |
2 | Copyright 1988-2022 Free Software Foundation, Inc. | |
3 | This is part of the GCC manual. | |
4 | For copying conditions, see the copyright.rst file. | |
5 | ||
6 | .. index:: LBOUND, array, lower bound | |
7 | ||
8 | .. _lbound: | |
9 | ||
10 | LBOUND --- Lower dimension bounds of an array | |
11 | ********************************************* | |
12 | ||
13 | .. function:: LBOUND(ARRAY , DIM , KIND) | |
14 | ||
15 | Returns the lower bounds of an array, or a single lower bound | |
16 | along the :samp:`{DIM}` dimension. | |
17 | ||
18 | :param ARRAY: | |
19 | Shall be an array, of any type. | |
20 | ||
21 | :param DIM: | |
22 | (Optional) Shall be a scalar ``INTEGER``. | |
23 | ||
24 | :param KIND: | |
25 | (Optional) An ``INTEGER`` initialization | |
26 | expression indicating the kind parameter of the result. | |
27 | ||
28 | :return: | |
29 | The return value is of type ``INTEGER`` and of kind :samp:`{KIND}`. If | |
30 | :samp:`{KIND}` is absent, the return value is of default integer kind. | |
31 | If :samp:`{DIM}` is absent, the result is an array of the lower bounds of | |
32 | :samp:`{ARRAY}`. If :samp:`{DIM}` is present, the result is a scalar | |
33 | corresponding to the lower bound of the array along that dimension. If | |
34 | :samp:`{ARRAY}` is an expression rather than a whole array or array | |
35 | structure component, or if it has a zero extent along the relevant | |
36 | dimension, the lower bound is taken to be 1. | |
37 | ||
38 | Standard: | |
39 | Fortran 90 and later, with :samp:`{KIND}` argument Fortran 2003 and later | |
40 | ||
41 | Class: | |
42 | Inquiry function | |
43 | ||
44 | Syntax: | |
45 | .. code-block:: fortran | |
46 | ||
47 | RESULT = LBOUND(ARRAY [, DIM [, KIND]]) | |
48 | ||
49 | See also: | |
50 | :ref:`UBOUND`, | |
3ed1b4ce | 51 | :ref:`LCOBOUND` |