* [patch, fortran, doc, committed] Document BACK for MINLOC and MAXLOC
@ 2018-05-10 14:33 Thomas König
0 siblings, 0 replies; only message in thread
From: Thomas König @ 2018-05-10 14:33 UTC (permalink / raw)
To: fortran, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 275 bytes --]
Hello world,
I just commmitted the attached patch as obvious after checking that
it passes "make info", "make dvi" and "make pdf".
Regards
Thomas
2018-05-10 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/54613
* intrinsic.texi: Document BACK for MINLOC and MAXLOC.
[-- Attachment #2: p-doc.diff --]
[-- Type: text/x-patch, Size: 3939 bytes --]
Index: intrinsic.texi
===================================================================
--- intrinsic.texi (Revision 260022)
+++ intrinsic.texi (Arbeitskopie)
@@ -9991,8 +9991,10 @@ locations of the maximum element along each row of
@var{DIM} direction. If @var{MASK} is present, only the elements for
which @var{MASK} is @code{.TRUE.} are considered. If more than one
element in the array has the maximum value, the location returned is
-that of the first such element in array element order. If the array has
-zero size, or all of the elements of @var{MASK} are @code{.FALSE.}, then
+that of the first such element in array element order if the
+@var{BACK} is not present, or if it false; otherwise, the location
+returned is that of the first such element. If the array has zero
+size, or all of the elements of @var{MASK} are @code{.FALSE.}, then
the result is an array of zeroes. Similarly, if @var{DIM} is supplied
and all of the elements of @var{MASK} along a given row are zero, the
result value for that row is zero.
@@ -10000,6 +10002,7 @@ result value for that row is zero.
@item @emph{Standard}:
Fortran 95 and later; @var{ARRAY} of @code{CHARACTER} and the
@var{KIND} argument are available in Fortran 2003 and later.
+The @var{BACK} argument is available in Fortran 2008 and later.
@item @emph{Class}:
Transformational function
@@ -10006,8 +10009,8 @@ Transformational function
@item @emph{Syntax}:
@multitable @columnfractions .80
-@item @code{RESULT = MAXLOC(ARRAY, DIM [, MASK] [,KIND])}
-@item @code{RESULT = MAXLOC(ARRAY [, MASK] [,KIND])}
+@item @code{RESULT = MAXLOC(ARRAY, DIM [, MASK] [,KIND] [,BACK])}
+@item @code{RESULT = MAXLOC(ARRAY [, MASK] [,KIND] [,BACK])}
@end multitable
@item @emph{Arguments}:
@@ -10021,6 +10024,7 @@ inclusive. It may not be an optional dummy argume
and conformable with @var{ARRAY}.
@item @var{KIND} @tab (Optional) An @code{INTEGER} initialization
expression indicating the kind parameter of the result.
+@item @var{BACK} @tab (Optional) A scalar of type @code{LOGICAL}.
@end multitable
@item @emph{Return value}:
@@ -10343,7 +10347,9 @@ locations of the minimum element along each row of
@var{DIM} direction. If @var{MASK} is present, only the elements for
which @var{MASK} is @code{.TRUE.} are considered. If more than one
element in the array has the minimum value, the location returned is
-that of the first such element in array element order. If the array has
+that of the first such element in array element order if the
+@var{BACK} is not present, or if it false; otherwise, the location
+returned is that of the first such element. If the array has
zero size, or all of the elements of @var{MASK} are @code{.FALSE.}, then
the result is an array of zeroes. Similarly, if @var{DIM} is supplied
and all of the elements of @var{MASK} along a given row are zero, the
@@ -10352,6 +10358,7 @@ result value for that row is zero.
@item @emph{Standard}:
Fortran 95 and later; @var{ARRAY} of @code{CHARACTER} and the
@var{KIND} argument are available in Fortran 2003 and later.
+The @var{BACK} argument is available in Fortran 2008 and later.
@item @emph{Class}:
Transformational function
@@ -10358,8 +10365,8 @@ Transformational function
@item @emph{Syntax}:
@multitable @columnfractions .80
-@item @code{RESULT = MINLOC(ARRAY, DIM [, MASK] [,KIND])}
-@item @code{RESULT = MINLOC(ARRAY [, MASK], [,KIND])}
+@item @code{RESULT = MINLOC(ARRAY, DIM [, MASK] [,KIND] [,BACK])}
+@item @code{RESULT = MINLOC(ARRAY [, MASK], [,KIND] [,BACK])}
@end multitable
@item @emph{Arguments}:
@@ -10373,6 +10380,7 @@ inclusive. It may not be an optional dummy argume
and conformable with @var{ARRAY}.
@item @var{KIND} @tab (Optional) An @code{INTEGER} initialization
expression indicating the kind parameter of the result.
+@item @var{BACK} @tab (Optional) A scalar of type @code{LOGICAL}.
@end multitable
@item @emph{Return value}:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-05-10 14:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-10 14:33 [patch, fortran, doc, committed] Document BACK for MINLOC and MAXLOC Thomas König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).