@@ -201,13 +201,13 @@ low, being of order O(Ln(N)), while the memory requirements of
201
201
#### The ` RADIX_SORT ` subroutine
202
202
203
203
` RADIX_SORT ` is a implementation of LSD [ radix sort] ( https://en.wikipedia.org/wiki/Radix_sort ) ,
204
- using ` 256 ` (one byte) as the radix. It only works for fixed width data,
204
+ using ` 256 ` as the radix. It only works for fixed width data,
205
205
thus integers and reals. ` RADIX_SORT ` is always of O(N) runtime performance
206
206
for any input data. For large and random data, it is about five (or more)
207
207
times faster than other sort subroutines.
208
208
209
209
The ` RADIX_SORT ` needs a buffer that have same size of the input data.
210
- Your can provide it using ` work ` arguement , if not the subroutine will
210
+ Your can provide it using ` work ` argument , if not the subroutine will
211
211
allocate the buffer and deallocate before return.
212
212
213
213
### Specifications of the ` stdlib_sorting ` procedures
@@ -362,17 +362,17 @@ input elements will be sorted in order of non-decreasing value.
362
362
array, and shall have at least ` size(array) ` elements. It is an
363
363
` intent(inout) ` argument, and its contents on return are undefined.
364
364
365
- ` reverse ` (optional): shall be a scalar of type default logical. It
365
+ ` reverse ` (optional): shall be a scalar of type default ` logical ` . It
366
366
is an ` intent(in) ` argument. If present with a value of ` .true. ` then
367
367
` array ` will be sorted in order of non-increasing values in unstable
368
368
order. Otherwise index will sort ` array ` in order of non-decreasing
369
369
values in unstable order.
370
370
371
371
##### Notes
372
372
373
- ` SORT ` implements a LSD radix sort algorithm with a ` 256 ` radix. For any
373
+ ` radix_sort ` implements a LSD radix sort algorithm with a ` 256 ` radix. For any
374
374
input data it provides ` O(N) ` run time performance. If ` array ` is of
375
- any type ` REAL ` the order of its elements on return undefined if any
375
+ any type ` real ` the order of its elements on return undefined if any
376
376
element of ` array ` is a ` NaN ` .
377
377
378
378
##### Example
0 commit comments