Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments