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.fft– Frequency-domain functionsulab.numpy.linalginterp()trapz()_ArrayLike_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()arctan2()atanh()ceil()cos()cosh()degrees()erf()erfc()exp()expm1()floor()gamma()lgamma()log()log10()log2()radians()sin()sinh()sqrt()tan()tanh()vectorize()- interp
- trapz
- _ArrayLike
- _DType
- int8
- int16
- float
- uint8
- uint16
- bool
- argmax
- argmin
- argsort
- cross
- diff
- flip
- max
- mean
- median
- min
- roll
- sort
- std
- sum
- ndarray
- get_printoptions
- set_printoptions
- ndinfo
- array
- trace
- dot
- acos
- acosh
- asin
- asinh
- around
- atan
- arctan2
- atanh
- ceil
- cos
- cosh
- degrees
- erf
- erfc
- exp
- expm1
- floor
- gamma
- lgamma
- log
- log10
- log2
- radians
- sin
- sinh
- sqrt
- tan
- tanh
- vectorize
ulab.scipy– Compatibility layer for scipyulab.user– This module should hold arbitrary user-defined functions.