M_sets(3f) - functions reminiscent of Matlab set functions
Unions, intersection, and set membership
A small set of Fortran functions reminiscent of Matlab set-theory functions intended to be built with and used by fpm(1) projects.
Set operations compare the elements in two sets to find commonalities or differences. Currently the allowed sets are arrays of integer numbers.
- union(A,B,setOrder) - Set union of two arrays
- unique(A,setOrder) - Unique values in array
- intersect(A,B,setOrder) - Set intersection of two arrays
- setdiff(A,B,setOrder) - Set difference of two arrays
- ismember(A,B,setOrder) - Array elements that are members of set array
- setxor(A,B,setOrder) - Set exclusive OR of two arrays
Download the github repository and build it with fpm ( as described at Fortran Package Manager )
git clone https://github.com/urbanjost/M_sets.git
cd M_sets
fpm build
or just list it as a dependency in your fpm.toml project file.
[dependencies]
M_sets = { git = "https://github.com/urbanjost/M_sets.git" }
- routines are described in HTML form using the format of man-pages.
-
A single page that uses javascript to combine all the HTML descriptions of the man-pages is at BOOK_M_sets.
-
There are man-pages in the repository download in the docs/ directory that may be installed on ULS (Unix-Like Systems).
-
CHANGELOG provides a history of significant changes