An Open Source Swift Math Library Inspired By Python’s NumPy

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.

FacebookTwitterDiggStumbleUponGoogle Plus

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.

Leave a Reply

Your email address will not be published. Required fields are marked *