Last week I mentioned the Pythonic library providing an extensive number of helpers inspired by Python’s standard library.
Here’s a Swift math library with syntax inspired by Python’s NumPy for easy and quick computation called Swix – the Swift Matrix Library from Scott Sievert.
Swix wraps math functionality found in Swift, and also calls math functions in the Accelerate framework and OpenCV libraries. The library is not a complete scientific computation library like NumPy (at least not at this stage) , but already implements many nice features.
As the readme states the library currently provides:
– various functions (sin, etc) and operators (+, etc) that operate on entire arrays
– easy initializers for 1D and 2D arrays
– dot product, matrix inversion, solution to linear system of equations
– machine learning algorithms (SVM, kNN, SVD/PCA, more to come)
– FFT/IFFT
You can find Swix on Github here.
An especially library for those looking to port their code from Matlab to iOS.
- Extensive Swift Utility Library Inspired By Python’s Standard Library
- Open Source Functional Programming Toolbelt For Swift Inspired By The Underscore.js Library
- An Rspec Inspired Behavior Driven Testing Framework For Swift
- An Open Source Swift Library For Easily Creating Much More Useful Logging Statements
- An Extensive Open Source iOS Library For Working With The Twitter API Written In Swift
Original article: An Open Source Swift Math Library Inspired By Python’s NumPy
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.




