Basic sorting and searching routines for vectors.
Supports integer & real vectors, and vectors extended from the abstract item
class.
Includes the routines:
function unique(vec)
function binary_search(val,vec)
subroutine sort_ascending(vec)
subroutine sort_descending(vec)
The library and test program will build with any modern Fortran compiler. A Fortran Package Manager manifest file (fpm.toml
) is included, so that the library and tests cases can be compiled with FPM. For example:
fpm build --profile release
fpm test --profile release
To use fortran-search-and-sort
within your FPM project, add the following to your fpm.toml
file:
[dependencies]
fortran-search-and-sort = { git="https://github.com/jacobwilliams/fortran-search-and-sort.git" }
To generate the documentation using ford, run:
ford ford.md
The latest API documentation can be found here. This was generated from the source code using FORD.
- stringsort -- Sorting routines for strings.