Simple scientific library for Swift based on GNU Scientific Library.
Documentation is generated automatically from master branch using jazzy and travis. Available at github pages.
Add a dependency in your Package.swift
.package(url: "https://github.com/kongzii/SGSL", from: "0.1.0")
Currently, SGSL depends on the system library gsl
.
brew install gsl
apt install pkg-config libgsl-dev
You can import the whole library via
import SGSL
Or only specific parts
import Statistics
import Statistics
let x = [1.0, 2.0, 3.0]
print(x.mean())
To generate documentation, run make documentation
. Files will be saved into ./Documentation
folder. It is not needed to re-generate documentation in PRs, as this will be done and published automatically.
We use swiftformat with default settings.
docker-compose up --build test
If you found missing features or bugs, please feel free to open an issue or even better, a pull request.
Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub