File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -204,9 +204,9 @@ and if `n` is an odd number, the median is:
204
204
median(array) = mean( array_sorted( floor( (n + 1) / 2.):floor( (n + 1) / 2.) + 1 ) )
205
205
```
206
206
207
- The current implementation is a quite naive implementation that relies on sorting
208
- the whole array, using the subroutine ` [[stdlib_sorting (module):ord_sort (interface)]] `
209
- provided by the ` [[stdlib_sorting (module)]] ` module.
207
+ The current implementation relies on a selection algorithm applied on a copy of
208
+ the whole array, using the subroutine ` [[stdlib_selection (module):select (interface)]] `
209
+ provided by the ` [[stdlib_selection (module)]] ` module.
210
210
211
211
### Syntax
212
212
@@ -220,11 +220,12 @@ Generic subroutine
220
220
221
221
### Arguments
222
222
223
- ` array ` : Shall be an array of type ` integer ` or ` real ` .
223
+ ` array ` : Shall be an array of type ` integer ` or ` real ` . It is an ` intent(in) `
224
+ argument.
224
225
225
- ` 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 ` .
226
+ ` 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 ` . It is an ` intent(in) ` argument.
226
227
227
- ` mask ` (optional): Shall be of type ` logical ` and either a scalar or an array of the same shape as ` array ` .
228
+ ` mask ` (optional): Shall be of type ` logical ` and either a scalar or an array of the same shape as ` array ` . It is an ` intent(in) ` argument.
228
229
229
230
### Return value
230
231
You can’t perform that action at this time.
0 commit comments