Skip to content

Commit

Permalink
Fix #643 (#645)
Browse files Browse the repository at this point in the history
* Fix #643

* Update to version 6.4.1
  • Loading branch information
qqice committed Aug 10, 2023
1 parent 5279de7 commit a05ec05
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion code/ndarray.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion code/ulab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
24 changes: 16 additions & 8 deletions docs/ulab-change-log.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -91,7 +99,7 @@ Sun, 15 Jan 2023
version 6.0.4

fix dot function

Sat, 14 Jan 2023

version 6.0.3
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a05ec05

Please sign in to comment.