From 419aa6e959027f92685d0989e8ca647bdfc656b7 Mon Sep 17 00:00:00 2001 From: qqice Date: Thu, 10 Aug 2023 14:02:38 +0800 Subject: [PATCH 1/2] Fix #643 --- code/ndarray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ndarray.c b/code/ndarray.c index dd4161f1..e7aeb88c 100644 --- a/code/ndarray.c +++ b/code/ndarray.c @@ -1738,7 +1738,7 @@ ndarray_obj_t *ndarray_from_mp_obj(mp_obj_t obj, uint8_t other_type) { mp_float_t *array = (mp_float_t *)ndarray->array; array[0] = mp_obj_get_float(obj); } else if(mp_obj_is_bool(obj)) { - ndarray = ndarray_new_linear_array(1, NDARRAY_BOOLEAN); + ndarray = ndarray_new_linear_array(1, NDARRAY_BOOL); uint8_t *array = (uint8_t *)ndarray->array; if(obj == mp_const_true) { *array = 1; From 178153f8d12b0e998c710a2b1718d84cc99ebc62 Mon Sep 17 00:00:00 2001 From: qqice Date: Thu, 10 Aug 2023 15:19:59 +0800 Subject: [PATCH 2/2] Update to version 6.4.1 --- code/ulab.c | 2 +- docs/ulab-change-log.md | 24 ++++++++++++++++-------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/code/ulab.c b/code/ulab.c index f8e35bb9..7487144b 100644 --- a/code/ulab.c +++ b/code/ulab.c @@ -33,7 +33,7 @@ #include "user/user.h" #include "utils/utils.h" -#define ULAB_VERSION 6.4.0 +#define ULAB_VERSION 6.4.1 #define xstr(s) str(s) #define str(s) #s diff --git a/docs/ulab-change-log.md b/docs/ulab-change-log.md index ad4021a4..ff921249 100644 --- a/docs/ulab-change-log.md +++ b/docs/ulab-change-log.md @@ -1,3 +1,11 @@ +Thu, 10 Aug 2023 + +version 6.4.1 + +``` +fix BOOLEAN issue, which would cause numpy.where funciton abnormally on RP2040(#643) +``` + Thu, 20 Jul 2023 version 6.4.0 @@ -31,13 +39,13 @@ version 6.3.1 version 6.3.0 add bitwise operators - + Wed, 17 May 2023 version 6.1.1 fix ndarray subscription, when value is NULL - + Tue, 16 May 2023 version 6.1.0 @@ -55,7 +63,7 @@ Sun, 7 May 2023 version 6.0.12 ndarray_from_mp_obj correctly treats Boolean arguments - + Sat, 6 May 2023 version 6.0.11 @@ -67,19 +75,19 @@ Sat, 6 May 2023 version 6.0.10 fix binary division - + Sun, 21 Jan 2023 version 6.0.6 raise proper exception in arange - + Sun, 21 Jan 2023 version 6.0.7 treat empty arrays in sort_complex correctly - + Sun, 21 Jan 2023 version 6.0.5 @@ -91,7 +99,7 @@ Sun, 15 Jan 2023 version 6.0.4 fix dot function - + Sat, 14 Jan 2023 version 6.0.3 @@ -227,7 +235,7 @@ version 4.2.0 Wed, 12 Jan 2022 version 4.2.0 - + implement numpy.save, numpy.load Wed, 12 Jan 2022