ulab – Manipulate numeric data similar to numpy
ulab is a numpy-like module for micropython, meant to simplify and
speed up common mathematical operations on arrays. The primary goal was to
implement a small subset of numpy that might be useful in the context of a
microcontroller. This means low-level data processing of linear (array) and
two-dimensional (matrix) data.
ulab is adapted from micropython-ulab, and the original project’s
documentation can be found at
https://micropython-ulab.readthedocs.io/en/latest/
ulab is modeled after numpy, and aims to be a compatible subset where
possible. Numpy’s documentation can be found at
https://docs.scipy.org/doc/numpy/index.html
Available on these boards
ulab.numpy– Numerical approximation methodsulab.numpy.carray– Return the real part of the complex argument, which can be either an ndarray, or a scalar.ulab.numpy.fft– Frequency-domain functionsulab.numpy.linalginterp()trapz()clip()equal()not_equal()isfinite()isinf()maximum()minimum()nonzero()where()arange()concatenate()diag()empty()eye()full()linspace()logspace()ones()zeros()_ArrayLike_ScalarOrArrayLike_ScalarOrNdArray_DTypeint8int16floatuint8uint16boolargmax()argmin()argsort()cross()diff()flip()max()mean()median()min()roll()sort()std()sum()ndarrayget_printoptions()set_printoptions()ndinfo()array()trace()dot()acos()acosh()asin()asinh()around()atan()atanh()arctan2()ceil()cos()cosh()degrees()erf()erfc()exp()expm1()floor()gamma()lgamma()log()log10()log2()radians()sin()sinc()sinh()sqrt()tan()tanh()vectorize()
ulab.scipy– Compatibility layer for scipyulab.user– This module should hold arbitrary user-defined functions.ulab.utils