urbanjost / M_sets

basic set functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Name

M_sets(3f) - functions reminiscent of Matlab set functions

Description

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.

Functions

  • 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

Build and test withfpm

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" }

Documentation docs

User

  • 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.

  • man-pages 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


Developer


References -

See also -

About

basic set functions

License:Creative Commons Zero v1.0 Universal


Languages

Language:Fortran 80.0%Language:Makefile 20.0%