29 lines
756 B
C
29 lines
756 B
C
/*
|
|
* This file is part of the micropython-ulab project,
|
|
*
|
|
* https://github.com/v923z/micropython-ulab
|
|
*
|
|
* The MIT License (MIT)
|
|
*
|
|
* Copyright (c) 2020 Jeff Epler for Adafruit Industries
|
|
* 2019-2020 Zoltán Vörös
|
|
*/
|
|
|
|
#ifndef _CREATE_
|
|
#define _CREATE_
|
|
|
|
#include "ulab.h"
|
|
#include "ndarray.h"
|
|
|
|
/*
|
|
mp_obj_t create_zeros(size_t , const mp_obj_t *, mp_map_t *);
|
|
mp_obj_t create_ones(size_t , const mp_obj_t *, mp_map_t *);
|
|
mp_obj_t create_eye(size_t , const mp_obj_t *, mp_map_t *);
|
|
mp_obj_t create_linspace(size_t , const mp_obj_t *, mp_map_t *);
|
|
*/
|
|
MP_DECLARE_CONST_FUN_OBJ_KW(create_ones_obj);
|
|
MP_DECLARE_CONST_FUN_OBJ_KW(create_zeros_obj);
|
|
MP_DECLARE_CONST_FUN_OBJ_KW(create_eye_obj);
|
|
MP_DECLARE_CONST_FUN_OBJ_KW(create_linspace_obj);
|
|
|
|
#endif
|