* Fix #643

* Update to version 6.4.1
This commit is contained in:
Xuebin Ruan 2023-08-10 16:25:19 +08:00 committed by GitHub
parent 5279de73ab
commit a05ec05351
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 10 deletions

View file

@ -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;

View file

@ -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

View file

@ -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