fix sum for 4D arrays

This commit is contained in:
Zoltán Vörös 2021-07-22 20:08:09 +02:00
parent 90cb0959b9
commit 18bb09da45
4 changed files with 9 additions and 3 deletions

View file

@ -181,7 +181,7 @@ static mp_obj_t numerical_all_any(mp_obj_t oin, mp_obj_t axis, uint8_t optype) {
array -= _shape_strides.strides[ULAB_MAX_DIMS - 2] * _shape_strides.shape[ULAB_MAX_DIMS - 2];
array += _shape_strides.strides[ULAB_MAX_DIMS - 3];
i++;
} while(i < _shape_strides.shape[ULAB_MAX_DIMS - 3])
} while(i < _shape_strides.shape[ULAB_MAX_DIMS - 3]);
#endif
return results;
} else if(mp_obj_is_int(oin) || mp_obj_is_float(oin)) {

View file

@ -444,7 +444,7 @@
#endif
#if ULAB_MAX_DIMS == 4
#define RUN_SUM(type, array, results, rarray, shape, strides, index) do {\
#define RUN_SUM(type, array, results, rarray, ss) do {\
size_t j = 0;\
do {\
size_t k = 0;\

View file

@ -33,7 +33,7 @@
#include "user/user.h"
#include "utils/utils.h"
#define ULAB_VERSION 3.2.0
#define ULAB_VERSION 3.3.1
#define xstr(s) str(s)
#define str(s) #s
#define ULAB_VERSION_STRING xstr(ULAB_VERSION) xstr(-) xstr(ULAB_MAX_DIMS) xstr(D)

View file

@ -1,3 +1,9 @@
Thu, 22 Jul 2021
version 3.3.1
fix sum for 4D arrays
Tue, 22 Jun 2021
version 3.1.1