SwiftNum is an in-progress numerical computing library in Swift. It uses Accelerate / BLAS, so it should be quite fast.
Currently SwiftNum only support macOS, but Linux support shouldn't be too hard, and is planned.
SwiftNum aims to provide a clean, easy and efficient Swift interface for common numerical computing tasks.
So far, SwiftNum has implemented:
- Linear Algebra
- Optimization Routines
- Signal Processing: FFT and Windowing
- Plotting: Just makes calls to gnuplot, but is very convenient from Swift.
Currently the requirements are:
- macOS
- Swift 4.0.x
- gnuplot installed if you wish to plot, though SwiftNum will build without it.
Just add it is a dependency to your Package.swift
file:
.Package(url: "https://github.com/donald-pinckney/SwiftNum", Version(1, 9, 9))