Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ulab: Update to release tag 1.1.0 #3694

Merged
merged 2 commits into from
Nov 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extmod/ulab
Submodule ulab updated 81 files
+2 −0 .gitignore
+34 −30 README.md
+240 −214 code/approx/approx.c
+6 −3 code/approx/approx.h
+153 −132 code/compare/compare.c
+120 −11 code/compare/compare.h
+27 −22 code/fft/fft.c
+0 −4 code/fft/fft.h
+61 −49 code/filter/filter.c
+2 −1 code/filter/filter.h
+268 −197 code/linalg/linalg.c
+4 −4 code/linalg/linalg.h
+1 −0 code/micropython.mk
+1,349 −757 code/ndarray.c
+614 −66 code/ndarray.h
+771 −0 code/ndarray_operators.c
+166 −0 code/ndarray_operators.h
+24 −7 code/ndarray_properties.h
+716 −412 code/numerical/numerical.c
+500 −81 code/numerical/numerical.h
+91 −42 code/poly/poly.c
+4 −2 code/poly/poly.h
+299 −34 code/ulab.c
+187 −27 code/ulab.h
+403 −65 code/ulab_create.c
+42 −7 code/ulab_create.h
+56 −5 code/user/user.c
+299 −100 code/vector/vectorise.c
+131 −8 code/vector/vectorise.h
+9 −1 docs/manual/Makefile
+91 −0 docs/manual/autoapi/templates/python/module.rst
+223 −0 docs/manual/extract_pyi.py
+35 −0 docs/manual/make.bat
+104 −13 docs/manual/source/conf.py
+24 −3 docs/manual/source/index.rst
+251 −0 docs/manual/source/ulab-approx.rst
+149 −0 docs/manual/source/ulab-compare.rst
+228 −0 docs/manual/source/ulab-fft.rst
+99 −0 docs/manual/source/ulab-filter.rst
+536 −0 docs/manual/source/ulab-intro.rst
+482 −0 docs/manual/source/ulab-linalg.rst
+2,172 −0 docs/manual/source/ulab-ndarray.rst
+665 −0 docs/manual/source/ulab-numerical.rst
+122 −0 docs/manual/source/ulab-poly.rst
+921 −0 docs/manual/source/ulab-programming.rst
+415 −0 docs/manual/source/ulab-vectorise.rst
+0 −4,612 docs/manual/source/ulab.rst
+70 −0 docs/manual/source/ulab/approx/index.rst
+51 −0 docs/manual/source/ulab/compare/index.rst
+40 −0 docs/manual/source/ulab/fft/index.rst
+48 −0 docs/manual/source/ulab/filter/index.rst
+429 −0 docs/manual/source/ulab/index.rst
+72 −0 docs/manual/source/ulab/linalg/index.rst
+84 −0 docs/manual/source/ulab/numerical/index.rst
+25 −0 docs/manual/source/ulab/poly/index.rst
+11 −0 docs/manual/source/ulab/user/index.rst
+167 −0 docs/manual/source/ulab/vector/index.rst
+1 −0 docs/requirements.txt
+0 −4,945 docs/source/ulab.rst
+617 −0 docs/ulab-approx.ipynb
+21 −0 docs/ulab-change-log.md
+469 −0 docs/ulab-compare.ipynb
+551 −0 docs/ulab-convert.ipynb
+610 −0 docs/ulab-fft.ipynb
+430 −0 docs/ulab-filter.ipynb
+765 −0 docs/ulab-intro.ipynb
+947 −0 docs/ulab-linalg.ipynb
+0 −6,246 docs/ulab-manual.ipynb
+1,108 −0 docs/ulab-numerical.ipynb
+454 −0 docs/ulab-poly.ipynb
+806 −0 docs/ulab-programming.ipynb
+776 −0 docs/ulab-vectorise.ipynb
+2 −2 tests/00smoke.py.exp
+11 −11 tests/argminmax.py
+6 −6 tests/cholesky.py.exp
+10 −11 tests/compare.py
+4 −4 tests/constructors.py.exp
+6 −6 tests/linalg.py.exp
+8 −8 tests/operators.py.exp
+12 −14 tests/poly.py
+0 −2 tests/slicing.py
147 changes: 104 additions & 43 deletions locale/circuitpython.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-11-10 15:30+0530\n"
"POT-Creation-Date: 2020-11-23 10:10-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -855,6 +855,10 @@ msgstr ""
msgid "FFT is defined for ndarrays only"
msgstr ""

#: extmod/ulab/code/fft/fft.c
msgid "FFT is implemented for linear arrays only"
msgstr ""

#: ports/esp32s2/common-hal/socketpool/Socket.c
msgid "Failed SSL handshake"
msgstr ""
Expand Down Expand Up @@ -1951,7 +1955,7 @@ msgstr ""
msgid "WARNING: Your code filename has two extensions\n"
msgstr ""

#: shared-bindings/watchdog/WatchDogTimer.c
#: ports/nrf/common-hal/watchdog/WatchDogTimer.c
msgid "WatchDogTimer cannot be deinitialized once mode is set to RESET"
msgstr ""

Expand Down Expand Up @@ -2030,10 +2034,6 @@ msgstr ""
msgid "addresses is empty"
msgstr ""

#: extmod/ulab/code/vector/vectorise.c
msgid "arctan2 is implemented for scalars and ndarrays only"
msgstr ""

#: py/modbuiltins.c
msgid "arg is an empty sequence"
msgstr ""
Expand All @@ -2042,6 +2042,10 @@ msgstr ""
msgid "argsort argument must be an ndarray"
msgstr ""

#: extmod/ulab/code/numerical/numerical.c
msgid "argsort is not implemented for flattened arrays"
msgstr ""

#: py/runtime.c
msgid "argument has wrong type"
msgstr ""
Expand All @@ -2059,14 +2063,22 @@ msgstr ""
msgid "argument should be a '%q' not a '%q'"
msgstr ""

#: extmod/ulab/code/linalg/linalg.c
#: extmod/ulab/code/linalg/linalg.c extmod/ulab/code/numerical/numerical.c
msgid "arguments must be ndarrays"
msgstr ""

#: extmod/ulab/code/ndarray.c
msgid "array and index length must be equal"
msgstr ""

#: py/objarray.c shared-bindings/nvm/ByteArray.c
msgid "array/bytes required on right side"
msgstr ""

#: extmod/ulab/code/numerical/numerical.c
msgid "attempt to get (arg)min/(arg)max of empty sequence"
msgstr ""

#: extmod/ulab/code/numerical/numerical.c
msgid "attempt to get argmin/argmax of an empty sequence"
msgstr ""
Expand All @@ -2076,15 +2088,15 @@ msgid "attributes not supported yet"
msgstr ""

#: extmod/ulab/code/numerical/numerical.c
msgid "axis must be -1, 0, None, or 1"
msgid "axis is out of bounds"
msgstr ""

#: extmod/ulab/code/numerical/numerical.c
msgid "axis must be -1, 0, or 1"
msgid "axis must be None, or an integer"
msgstr ""

#: extmod/ulab/code/numerical/numerical.c
msgid "axis must be None, 0, or 1"
msgid "axis too long"
msgstr ""

#: py/builtinevex.c
Expand Down Expand Up @@ -2288,6 +2300,10 @@ msgid ""
"can't switch from manual field specification to automatic field numbering"
msgstr ""

#: extmod/ulab/code/ndarray_operators.c
msgid "cannot cast output with casting rule"
msgstr ""

#: py/objtype.c
msgid "cannot create '%q' instances"
msgstr ""
Expand All @@ -2304,10 +2320,6 @@ msgstr ""
msgid "cannot perform relative import"
msgstr ""

#: extmod/ulab/code/ndarray.c
msgid "cannot reshape array (incompatible input/output shape)"
msgstr ""

#: py/emitnative.c
msgid "casting"
msgstr ""
Expand Down Expand Up @@ -2380,10 +2392,6 @@ msgstr ""
msgid "convolve arguments must not be empty"
msgstr ""

#: extmod/ulab/code/ndarray.c
msgid "could not broadast input array from shape"
msgstr ""

#: extmod/ulab/code/poly/poly.c
msgid "could not invert Vandermonde matrix"
msgstr ""
Expand All @@ -2392,6 +2400,10 @@ msgstr ""
msgid "couldn't determine SD card version"
msgstr ""

#: extmod/ulab/code/numerical/numerical.c
msgid "cross is defined for 1D arrays of length 3"
msgstr ""

#: extmod/ulab/code/approx/approx.c
msgid "data must be iterable"
msgstr ""
Expand All @@ -2400,10 +2412,6 @@ msgstr ""
msgid "data must be of equal length"
msgstr ""

#: extmod/ulab/code/numerical/numerical.c
msgid "ddof must be smaller than length of data set"
msgstr ""

#: py/parsenum.c
msgid "decimal numbers not supported"
msgstr ""
Expand Down Expand Up @@ -2433,6 +2441,10 @@ msgstr ""
msgid "diff argument must be an ndarray"
msgstr ""

#: extmod/ulab/code/numerical/numerical.c
msgid "differentiation order out of range"
msgstr ""

#: py/modmath.c py/objfloat.c py/objint_longlong.c py/objint_mpz.c py/runtime.c
#: shared-bindings/math/__init__.c
msgid "division by zero"
Expand Down Expand Up @@ -2548,6 +2560,10 @@ msgstr ""
msgid "first argument must be a function"
msgstr ""

#: extmod/ulab/code/ulab_create.c
msgid "first argument must be a tuple of ndarrays"
msgstr ""

#: extmod/ulab/code/ndarray.c
msgid "first argument must be an iterable"
msgstr ""
Expand Down Expand Up @@ -2601,8 +2617,8 @@ msgstr ""
msgid "function has the same sign at the ends of interval"
msgstr ""

#: extmod/ulab/code/compare/compare.c
msgid "function is implemented for scalars and ndarrays only"
#: extmod/ulab/code/ndarray.c
msgid "function is defined for ndarrays only"
msgstr ""

#: py/argcheck.c
Expand Down Expand Up @@ -2672,6 +2688,7 @@ msgstr ""
msgid "index is out of bounds"
msgstr ""

#: extmod/ulab/code/numerical/numerical.c
#: ports/esp32s2/common-hal/pulseio/PulseIn.c py/obj.c
msgid "index out of range"
msgstr ""
Expand All @@ -2696,6 +2713,10 @@ msgstr ""
msgid "inline assembler must be a function"
msgstr ""

#: extmod/ulab/code/ndarray.c
msgid "input and output shapes are not compatible"
msgstr ""

#: extmod/ulab/code/ulab_create.c
msgid "input argument must be an integer or a 2-tuple"
msgstr ""
Expand All @@ -2704,6 +2725,10 @@ msgstr ""
msgid "input array length must be power of 2"
msgstr ""

#: extmod/ulab/code/ulab_create.c
msgid "input arrays are not compatible"
msgstr ""

#: extmod/ulab/code/poly/poly.c
msgid "input data must be an iterable"
msgstr ""
Expand All @@ -2716,6 +2741,22 @@ msgstr ""
msgid "input matrix is singular"
msgstr ""

#: extmod/ulab/code/user/user.c
msgid "input must be a dense ndarray"
msgstr ""

#: extmod/ulab/code/ulab_create.c
msgid "input must be a tensor of rank 2"
msgstr ""

#: extmod/ulab/code/ulab_create.c extmod/ulab/code/user/user.c
msgid "input must be an ndarray"
msgstr ""

#: extmod/ulab/code/filter/filter.c
msgid "input must be one-dimensional"
msgstr ""

#: extmod/ulab/code/linalg/linalg.c
msgid "input must be square matrix"
msgstr ""
Expand All @@ -2728,6 +2769,10 @@ msgstr ""
msgid "input vectors must be of equal length"
msgstr ""

#: extmod/ulab/code/poly/poly.c
msgid "inputs are not iterable"
msgstr ""

#: py/parsenum.c
msgid "int() arg 2 must be >= 2 and <= 36"
msgstr ""
Expand Down Expand Up @@ -2896,6 +2941,10 @@ msgstr ""
msgid "max_length must be > 0"
msgstr ""

#: extmod/ulab/code/ndarray.c
msgid "maximum number of dimensions is 4"
msgstr ""

#: py/runtime.c
msgid "maximum recursion depth exceeded"
msgstr ""
Expand Down Expand Up @@ -2945,10 +2994,6 @@ msgstr ""
msgid "must use keyword argument for key function"
msgstr ""

#: extmod/ulab/code/numerical/numerical.c
msgid "n must be between 0, and 9"
msgstr ""

#: py/runtime.c
msgid "name '%q' is not defined"
msgstr ""
Expand Down Expand Up @@ -3031,6 +3076,10 @@ msgstr ""
msgid "non-keyword arg after keyword arg"
msgstr ""

#: extmod/ulab/code/linalg/linalg.c
msgid "norm is defined for 1D and 2D arrays"
msgstr ""

#: shared-bindings/_bleio/UUID.c
msgid "not a 128-bit UUID"
msgstr ""
Expand All @@ -3043,10 +3092,6 @@ msgstr ""
msgid "not enough arguments for format string"
msgstr ""

#: extmod/ulab/code/poly/poly.c
msgid "number of arguments must be 2, or 3"
msgstr ""

#: extmod/ulab/code/ulab_create.c
msgid "number of points must be at least 2"
msgstr ""
Expand Down Expand Up @@ -3099,6 +3144,10 @@ msgstr ""
msgid "odd-length string"
msgstr ""

#: extmod/ulab/code/ulab_create.c
msgid "offset is too large"
msgstr ""

#: py/objstr.c py/objstrunicode.c
msgid "offset out of bounds"
msgstr ""
Expand All @@ -3121,6 +3170,14 @@ msgstr ""
msgid "operands could not be broadcast together"
msgstr ""

#: extmod/ulab/code/ndarray.c
msgid "operation is implemented for 1D Boolean arrays only"
msgstr ""

#: extmod/ulab/code/numerical/numerical.c
msgid "operation is not implemented for flattened array"
msgstr ""

#: extmod/ulab/code/numerical/numerical.c
msgid "operation is not implemented on ndarrays"
msgstr ""
Expand Down Expand Up @@ -3255,6 +3312,10 @@ msgstr ""
msgid "requested length %d but object has length %d"
msgstr ""

#: extmod/ulab/code/ndarray_operators.c
msgid "results cannot be cast to specified type"
msgstr ""

#: py/compile.c
msgid "return annotation must be an identifier"
msgstr ""
Expand All @@ -3273,8 +3334,8 @@ msgstr ""
msgid "rgb_pins[%d] is not on the same port as clock"
msgstr ""

#: extmod/ulab/code/ndarray.c
msgid "right hand side must be an ndarray, or a scalar"
#: extmod/ulab/code/numerical/numerical.c
msgid "roll argument must be an ndarray"
msgstr ""

#: py/objstr.c
Expand All @@ -3300,7 +3361,7 @@ msgid "script compilation not supported"
msgstr ""

#: extmod/ulab/code/ndarray.c
msgid "shape must be a 2-tuple"
msgid "shape must be a tuple"
msgstr ""

#: py/objstr.c
Expand Down Expand Up @@ -3343,10 +3404,6 @@ msgstr ""
msgid "sort argument must be an ndarray"
msgstr ""

#: extmod/ulab/code/numerical/numerical.c
msgid "sorted axis can't be longer than 65535"
msgstr ""

#: extmod/ulab/code/filter/filter.c
msgid "sos array must be of shape (n_section, 6)"
msgstr ""
Expand Down Expand Up @@ -3452,6 +3509,10 @@ msgstr ""
msgid "timestamp out of range for platform time_t"
msgstr ""

#: extmod/ulab/code/ndarray.c
msgid "tobytes can be invoked for dense arrays only"
msgstr ""

#: shared-module/struct/__init__.c
msgid "too many arguments provided with the given format"
msgstr ""
Expand Down Expand Up @@ -3627,12 +3688,12 @@ msgstr ""
msgid "window must be <= interval"
msgstr ""

#: extmod/ulab/code/linalg/linalg.c
msgid "wrong argument type"
#: extmod/ulab/code/numerical/numerical.c
msgid "wrong axis index"
msgstr ""

#: extmod/ulab/code/ndarray.c
msgid "wrong index type"
#: extmod/ulab/code/ulab_create.c
msgid "wrong axis specified"
msgstr ""

#: extmod/ulab/code/vector/vectorise.c
Expand Down
2 changes: 2 additions & 0 deletions ports/stm/boards/meowbit_v121/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ LD_COMMON = boards/common_default.ld
LD_FILE = boards/STM32F401xe_boot.ld
# For debugging - also comment BOOTLOADER_OFFSET and BOARD_VTOR_DEFER
# LD_FILE = boards/STM32F401xe_fs.ld

CIRCUITPY_ULAB = 0
Loading