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: doc/specs/stdlib_stats.md
+2
Original file line number
Diff line number
Diff line change
@@ -229,12 +229,14 @@ Generic subroutine
229
229
### Return value
230
230
231
231
If `array` is of type `real`, the result is of type `real` with the same kind as `array`.
232
+
If `array` is of type `real` and contains IEEE `NaN`, the result is IEEE `NaN`.
232
233
If `array` is of type `integer`, the result is of type `real(dp)`.
233
234
234
235
If `dim` is absent, a scalar with the median 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.
235
236
236
237
If `mask` is specified, the result is the median of all elements of `array` corresponding to `true` elements of `mask`. If every element of `mask` is `false`, the result is IEEE `NaN`.
0 commit comments