fortran-search-and-sort
fortran-search-and-sort copied to clipboard
Searching and sorting with modern Fortran
Status
Description
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)
Compiling
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
Documentation
The latest API documentation can be found here. This was generated from the source code using FORD.
See also
- stringsort -- Sorting routines for strings.