Commit 2ef0f9c6 by Daniel Franke Committed by Daniel Franke

re PR fortran/40904 (Documentation: Description for COUNT is wrong)

2009-12-06  Daniel Franke  <franke.daniel@gmail.com>

        PR fortran/40904
        * intrinsics.texi: Fixed description of COUNT.

From-SVN: r155022
parent cf2b99ce
2009-12-06 Daniel Franke <franke.daniel@gmail.com>
PR fortran/40904
* intrinsics.texi: Fixed description of COUNT.
2009-12-01 Janne Blomqvist <jb@gcc.gnu.org> 2009-12-01 Janne Blomqvist <jb@gcc.gnu.org>
PR fortran/42131 PR fortran/42131
......
...@@ -2738,11 +2738,11 @@ Inverse function: @ref{ACOSH} ...@@ -2738,11 +2738,11 @@ Inverse function: @ref{ACOSH}
@table @asis @table @asis
@item @emph{Description}: @item @emph{Description}:
@code{COUNT(MASK [, DIM [, KIND]])} counts the number of @code{.TRUE.} Counts the number of @code{.TRUE.} elements in a logical @var{MASK},
elements of @var{MASK} along the dimension of @var{DIM}. If @var{DIM} is or, if the @var{DIM} argument is supplied, counts the number of
omitted it is taken to be @code{1}. @var{DIM} is a scalar of type elements along each row of the array in the @var{DIM} direction.
@code{INTEGER} in the range of @math{1 \leq DIM \leq n)} where @math{n} If the array has zero size, or all of the elements of @var{MASK} are
is the rank of @var{MASK}. @code{.FALSE.}, then the result is @code{0}.
@item @emph{Standard}: @item @emph{Standard}:
Fortran 95 and later, with @var{KIND} argument Fortran 2003 and later Fortran 95 and later, with @var{KIND} argument Fortran 2003 and later
...@@ -2751,7 +2751,7 @@ Fortran 95 and later, with @var{KIND} argument Fortran 2003 and later ...@@ -2751,7 +2751,7 @@ Fortran 95 and later, with @var{KIND} argument Fortran 2003 and later
Transformational function Transformational function
@item @emph{Syntax}: @item @emph{Syntax}:
@code{RESULT = COUNT(MASK [, DIM [, KIND]])} @code{RESULT = COUNT(MASK [, DIM, KIND])}
@item @emph{Arguments}: @item @emph{Arguments}:
@multitable @columnfractions .15 .70 @multitable @columnfractions .15 .70
...@@ -2764,7 +2764,9 @@ expression indicating the kind parameter of the result. ...@@ -2764,7 +2764,9 @@ expression indicating the kind parameter of the result.
@item @emph{Return value}: @item @emph{Return value}:
The return value is of type @code{INTEGER} and of kind @var{KIND}. If The return value is of type @code{INTEGER} and of kind @var{KIND}. If
@var{KIND} is absent, the return value is of default integer kind. @var{KIND} is absent, the return value is of default integer kind.
The result has a rank equal to that of @var{MASK}. If @var{DIM} is present, the result is an array with a rank one less
than the rank of @var{ARRAY}, and a size corresponding to the shape
of @var{ARRAY} with the @var{DIM} dimension removed.
@item @emph{Example}: @item @emph{Example}:
@smallexample @smallexample
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment