[quote=Iyassou post_id=11775 time=1467287560 user_id=1808]
I want to install Numpy on my Pyboard so that I can use the handy numpy.linalg.det() function to find a matrix determinant. I was wondering if this is possible and if it is how is it done.
I knew that numpy would not exist for MicroPython but I was also a bit naive thinking there would be at least some basic "number-crunching" tools available. Even the built-in `array` object does not allow basic vectorization techniques such as element-wise multiplication.
Looks like @jlawson has written a fairly powerful module for 2D matrix operations - see this forum post: viewtopic.php?f=15&t=1169
It looks like a great piece of work but I think it is all written in Python (as opposed to machine code) so it is more of a convenience tool than a 'speed-up' option - e.g. for vectorization of large computations.
Surely someone will work on an implementation of numpy arrays and some basic functionality at some point?
- ndarray with dim, shape, size, dtype attributes and slicing capability (views)
And maybe the following commonly-used numpy array methods:
- mean, sum, max, argmax, min, argmin, dot, transpose, all, any, ravel/flatten, reshape, copy
(I wish I had the skills to do it but happy to assist if this is a project someone is working on).