https://github.com/diku-dk/sml-complex
Standard ML complex number library
https://github.com/diku-dk/sml-complex
smlpkg
Last synced: 4 months ago
JSON representation
Standard ML complex number library
- Host: GitHub
- URL: https://github.com/diku-dk/sml-complex
- Owner: diku-dk
- License: isc
- Created: 2024-09-21T14:57:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-22T19:20:54.000Z (over 1 year ago)
- Last Synced: 2025-08-05T23:28:38.687Z (10 months ago)
- Topics: smlpkg
- Language: Standard ML
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sml-complex [](https://github.com/diku-dk/sml-complex/actions)
Standard ML package for complex numbers.
## Overview of MLB files
- `lib/github.com/diku-dk/sml-complex/complex.mlb`:
- **signature** [`COMPLEX`](lib/github.com/diku-dk/sml-complex/complex.sig)
- **structure** `Complex` :> [`COMPLEX`](lib/github.com/diku-dk/sml-complex/complex.sig)
## Use of the package
This library is set up to work well with the SML package manager
[smlpkg](https://github.com/diku-dk/smlpkg). To use the package, in
the root of your project directory, execute the command:
```
$ smlpkg add github.com/diku-dk/sml-complex
```
This command will add a _requirement_ (a line) to the `sml.pkg` file in your
project directory (and create the file, if there is no file `sml.pkg`
already).
To download the library into the directory
`lib/github.com/diku-dk/sml-complex`, execute the command:
```
$ smlpkg sync
```
You can now reference the `mlb`-file using relative paths from within
your project's `mlb`-files.
Notice that you can choose either to treat the downloaded package as
part of your own project sources (vendoring) or you can add the
`sml.pkg` file to your project sources and make the `smlpkg sync`
command part of your build process.
## Author
The `Complex` structure and the `COMPLEX` signature are ported from the Futhark
`complex` package.