You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/stdlib_experimental_stats.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -18,15 +18,15 @@ Returns the mean of all the elements of `array`, or of the elements of `array` a
18
18
19
19
### Arguments
20
20
21
-
`array`: Shall be an array of type `integer`, or `real`.
21
+
`array`: Shall be an array of type `integer`, `real`, or `complex`.
22
22
23
23
`dim`: Shall be a scalar of type `integer` with a value in the range from 1 to n, where n is the rank of `array`.
24
24
25
25
`mask` (optional): Shall be of type `logical` and either by a scalar or an array of the same shape as `array`.
26
26
27
27
### Return value
28
28
29
-
If `array` is of type `real`, the result is of the same type as `array`.
29
+
If `array` is of type `real` or `complex`, the result is of the same type as `array`.
30
30
If `array` is of type `integer`, the result is of type `double precision`.
31
31
32
32
If `dim` is absent, a scalar with the mean of all elements in `array` is returned. Otherwise, an array of rank n-1, where n equals the rank of `array`, and a shape similar to that of `array` with dimension `dim` dropped is returned.
0 commit comments