9.71. COUNT
9.71 COUNT — Count function
- Description:
- Counts the number of
.TRUE.
elements in a logical MASK, or, if the DIM argument is supplied, counts the number of elements along each row of the array in the DIM direction. If the array has zero size, or all of the elements of MASK are.FALSE.
, then the result is0
. - Standard:
- Fortran 95 and later, with KIND argument Fortran 2003 and later
- Class:
- Transformational function
- Syntax:
-
RESULT = COUNT(MASK [, DIM, KIND])
- Arguments:
-
MASK The type shall be LOGICAL
.DIM (Optional) The type shall be INTEGER
.登录查看完整内容