backup commit
This commit is contained in:
parent
434211d401
commit
f014128595
6 changed files with 14 additions and 5 deletions
|
|
@ -708,7 +708,7 @@ mp_obj_t ndarray_flatten(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_a
|
|||
}
|
||||
|
||||
// Binary operations
|
||||
static ndarray_obj_t *ndarray_from_mp_obj(mp_obj_t obj) {
|
||||
ndarray_obj_t *ndarray_from_mp_obj(mp_obj_t obj) {
|
||||
// creates an ndarray from an micropython int or float
|
||||
// if the input is an ndarray, it is returned
|
||||
ndarray_obj_t *ndarray;
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ MP_DECLARE_CONST_FUN_OBJ_1(ndarray_transpose_obj);
|
|||
mp_int_t ndarray_get_buffer(mp_obj_t obj, mp_buffer_info_t *bufinfo, mp_uint_t flags);
|
||||
//void ndarray_attributes(mp_obj_t , qstr , mp_obj_t *);
|
||||
|
||||
ndarray_obj_t *ndarray_from_mp_obj(mp_obj_t );
|
||||
|
||||
#define CREATE_SINGLE_ITEM(outarray, type, typecode, value) do {\
|
||||
ndarray_obj_t *tmp = create_new_ndarray(1, 1, (typecode));\
|
||||
|
|
|
|||
|
|
@ -19,9 +19,7 @@
|
|||
|
||||
extern mp_obj_module_t ulab_numerical_module;
|
||||
|
||||
// TODO: implement minimum/maximum, and cumsum
|
||||
//mp_obj_t numerical_minimum(mp_obj_t , mp_obj_t );
|
||||
//mp_obj_t numerical_maximum(mp_obj_t , mp_obj_t );
|
||||
// TODO: implement cumsum
|
||||
//mp_obj_t numerical_cumsum(size_t , const mp_obj_t *, mp_map_t *);
|
||||
|
||||
#define RUN_ARGMIN(in, out, typein, typeout, len, start, increment, op, pos) do {\
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
#include "fft.h"
|
||||
#include "filter.h"
|
||||
#include "numerical.h"
|
||||
#include "compare.h"
|
||||
#include "extras.h"
|
||||
|
||||
STATIC MP_DEFINE_STR_OBJ(ulab_version_obj, "0.41.4");
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
#ifndef __ULAB__
|
||||
#define __ULAB__
|
||||
|
||||
// create
|
||||
// the create module is always included
|
||||
#define ULAB_CREATE_MODULE (1)
|
||||
|
||||
// vectorise (all functions) takes approx. 3 kB of flash space
|
||||
|
|
@ -33,6 +33,9 @@
|
|||
// the filter module takes about 1 kB of flash space
|
||||
#define ULAB_FILTER_MODULE (1)
|
||||
|
||||
// the compare module takes about XXX kB of flash space
|
||||
#define ULAB_COMPARE_MODULE (1)
|
||||
|
||||
// user-defined modules
|
||||
#define ULAB_EXTRAS_MODULE (1)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
Mon, 20 Apr 2020
|
||||
|
||||
version 0.42.0
|
||||
|
||||
add minimum/maximum/clip functions
|
||||
|
||||
Sat, 18 Apr 2020
|
||||
|
||||
version 0.41.4
|
||||
|
|
|
|||
Loading…
Reference in a new issue