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: README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -176,15 +176,15 @@ Alternatively, you can build using provided Makefiles:
176
176
make -f Makefile.manual
177
177
```
178
178
179
-
You can limit the maximum rank by setting ``-DMAXRANK=<num>`` in the ``FYPPFLAGS`` environment variable (which can reduce the compilation time):
179
+
You can limit the maximum rank by setting ``-DMAXRANK=<num>`` in the ``ADD_FYPPFLAGS`` environment variable (which can reduce the compilation time):
180
180
181
181
```sh
182
-
make -f Makefile.manual FYPPFLAGS=-DMAXRANK=4
182
+
make -f Makefile.manual ADD_FYPPFLAGS=-DMAXRANK=4
183
183
```
184
184
185
185
You can also specify the compiler and compiler-flags by setting the ``FC`` and ``FFLAGS`` environmental variables. Among other things, this facilitates use of compiler optimizations that are not specified in the Makefile.manual defaults.
186
186
```sh
187
-
make -f Makefile.manual FYPPFLAGS=-DMAXRANK=4 FC=gfortran FFLAGS="-O3 -flto"
187
+
make -f Makefile.manual ADD_FYPPFLAGS=-DMAXRANK=4 FC=gfortran FFLAGS="-O3 -flto"
188
188
```
189
189
190
190
### Build with [fortran-lang/fpm](https://github.com/fortran-lang/fpm)
Copy file name to clipboardexpand all lines: doc/specs/stdlib_stats.md
+20-20
Original file line number
Diff line number
Diff line change
@@ -32,11 +32,11 @@ Generic subroutine
32
32
33
33
### Arguments
34
34
35
-
`array`: Shall be a rank-1 or a rank-2 array of type `integer`, `real`, or `complex`.
35
+
`array`: Shall be a rank-1 or a rank-2 array of type `integer`, `real`, or `complex`. It is an `intent(in)` argument.
36
36
37
-
`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`.
37
+
`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.
38
38
39
-
`mask` (optional): Shall be of type `logical` and either a scalar or an array of the same shape as `array`.
39
+
`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.
40
40
41
41
### Return value
42
42
@@ -93,13 +93,13 @@ Generic subroutine
93
93
94
94
### Arguments
95
95
96
-
`array`: Shall be a rank-1 or a rank-2 array of type `integer`, `real`, or `complex`.
96
+
`array`: Shall be a rank-1 or a rank-2 array of type `integer`, `real`, or `complex`. It is an `intent(in)` argument.
97
97
98
-
`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`.
98
+
`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.
99
99
100
-
`mask` (optional): Shall be of type `logical` and either a scalar or an array of the same shape as `array`.
100
+
`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.
101
101
102
-
`corrected` (optional): Shall be a scalar of type `logical`. If `corrected` is `.true.` (default value), the sum is scaled with `n-1`. If `corrected` is `.false.`, then the sum is scaled with `n`.
102
+
`corrected` (optional): Shall be a scalar of type `logical`. If `corrected` is `.true.` (default value), the sum is scaled with `n-1`. If `corrected` is `.false.`, then the sum is scaled with `n`. It is an `intent(in)` argument.
103
103
104
104
### Return value
105
105
@@ -148,11 +148,11 @@ Generic subroutine
148
148
149
149
### Arguments
150
150
151
-
`array`: Shall be an array of type `integer`, `real`, or `complex`.
151
+
`array`: Shall be an array of type `integer`, `real`, or `complex`. It is an `intent(in)` argument.
152
152
153
-
`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`.
153
+
`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.
154
154
155
-
`mask` (optional): Shall be of type `logical` and either a scalar or an array of the same shape as `array`.
155
+
`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.
156
156
157
157
### Return value
158
158
@@ -204,9 +204,9 @@ and if `n` is an odd number, the median is:
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,11 @@ 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)` argument.
224
224
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`.
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`. It is an `intent(in)` argument.
226
226
227
-
`mask` (optional): Shall be of type `logical` and either a scalar or an array of the same shape as `array`.
227
+
`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
228
229
229
### Return value
230
230
@@ -360,13 +360,13 @@ Generic subroutine
360
360
361
361
### Arguments
362
362
363
-
`array`: Shall be an array of type `integer`, `real`, or `complex`.
363
+
`array`: Shall be an array of type `integer`, `real`, or `complex`. It is an `intent(in)` argument.
364
364
365
-
`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`.
365
+
`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.
366
366
367
-
`mask` (optional): Shall be of type `logical` and either a scalar or an array of the same shape as `array`.
367
+
`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.
368
368
369
-
`corrected` (optional): Shall be a scalar of type `logical`. If `corrected` is `.true.` (default value), the sum is scaled with `n-1`. If `corrected` is `.false.`, then the sum is scaled with `n`.
369
+
`corrected` (optional): Shall be a scalar of type `logical`. If `corrected` is `.true.` (default value), the sum is scaled with `n-1`. If `corrected` is `.false.`, then the sum is scaled with `n`. It is an `intent(in)` argument.
0 commit comments