Clicky
Showing changes from revision #2 to #3:
(追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)
Determines the location of the element in the array with the minimum value, or, if the dim
argument is supplied, determines the locations of the minimum element along each row of the array in the dim
direction. If mask
is present, only the elements for which mask
is .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 zero size, or all of the elements of mask
are .false.
, then the result is an array of zeroes. Similarly, if dim
is supplied and all of the elements of mask
along a given row are zero, the result value for that row is zero.
Fortran 95 and(削除) later (削除ここまで)(追記) later; (追記ここまで)(追記) array
(追記ここまで)(追記) of (追記ここまで)(追記) character
(追記ここまで)(追記) and the (追記ここまで)(追記) kind
(追記ここまで)(追記) argument are available in (追記ここまで)(追記) Fortran 2003 (追記ここまで)(追記) and later. (追記ここまで)
Transformational function
result = minloc(array, dim [,(削除) mask]) (削除ここまで)(追記) mask] (追記ここまで)(追記) [,kind]) (追記ここまで)
result = minloc(array [,(削除) mask]) (削除ここまで)(追記) mask] (追記ここまで)(追記) [,kind]) (追記ここまで)
array
- Shall be an array of type integer
, real
, or character
.dim
- (Optional) Shall be a scalar of type integer
, with a value between one and the rank of array
, inclusive. It may not be an optional dummy argument.mask
- Shall be an array of type logical
, and conformable with array
.kind
- (Optional) An integer
initialization expression indicating the kind parameter of the result.If dim
is absent, the result is a rank-one array with a length equal to the rank of array
. If dim
is present, the result is an array with a rank one less than the rank of array
, and a size corresponding to the size of array
with the dim
dimension removed. If dim
is present and array
has a rank of one, the result is a scalar.(削除) In (削除ここまで)(追記) If (追記ここまで)(削除) all (削除ここまで)(削除) cases, (削除ここまで) the(削除) result (削除ここまで)(追記) optional (追記ここまで)(削除) is (削除ここまで)(追記) argument (追記ここまで)(削除) of (削除ここまで)(削除) default (削除ここまで)(削除) integer (削除ここまで)(追記) kind (追記ここまで)(削除) type. (削除ここまで)(追記) is (追記ここまで)(追記) present, (追記ここまで)(追記) the (追記ここまで)(追記) result (追記ここまで)(追記) is (追記ここまで)(追記) an (追記ここまで)(追記) integer (追記ここまで)(追記) of (追記ここまで)(追記) kind (追記ここまで)(追記) kind
(追記ここまで)(追記) , otherwise it is of default kind. (追記ここまで)