kongzii/sgsl
Simple scientific library for Swift based on [GNU Scientific Library](https://www.gnu.org/software/gsl/).
Usage
Add dependency
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.
OSX
brew install gslLinux
apt install pkg-config libgsl-devUsage
Import whole library
You can import the whole library via
import SGSLImport only required components
Or only specific parts
import StatisticsUsage example
import Statistics
let x = [1.0, 2.0, 3.0]
print(x.mean())Documentation
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.
Code style
We use swiftformat with default settings.
Tests
docker-compose up --build testContributions
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
Package Metadata
Repository: kongzii/sgsl
Default branch: master
README: README.md