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.
6 .. index:: IANY, array, OR, bits, OR of array elements
10 IANY --- Bitwise OR of array elements
11 *************************************
13 .. function:: IANY(ARRAY, DIM, MASK)
15 Reduces with bitwise OR (inclusive or) the elements of :samp:`{ARRAY}` along
16 dimension :samp:`{DIM}` if the corresponding element in :samp:`{MASK}` is ``TRUE``.
19 Shall be an array of type ``INTEGER``
22 (Optional) shall be a scalar of type
23 ``INTEGER`` with a value in the range from 1 to n, where n
24 equals the rank of :samp:`{ARRAY}`.
27 (Optional) shall be of type ``LOGICAL``
28 and either be a scalar or an array of the same shape as :samp:`{ARRAY}`.
31 The result is of the same type as :samp:`{ARRAY}`.
34 Fortran 2008 and later
37 Transformational function
40 .. code-block:: fortran
42 RESULT = IANY(ARRAY[, MASK])
43 RESULT = IANY(ARRAY, DIM[, MASK])
46 .. code-block:: fortran
55 PRINT '(b8.8)', IANY(a)