Lines Matching +full:python +full:- +full:version

1 /* ----------------------------------------------------------------------
2 * Project: CMSIS DSP Python Wrapper
4 * Description: C code for the CMSIS-DSP Python wrapper
9 * Target Processor: Cortex-M cores
10 * -------------------------------------------------------------------- */
12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
14 * SPDX-License-Identifier: Apache-2.0
16 * Licensed under the Apache License, Version 2.0 (the License); you may
20 * www.apache.org/licenses/LICENSE-2.0
34 // Check it is built with right version
38 #error("Error building with wrong NumPy API version")
46 #include <Python.h>
76 PyErr_SetString(st->error, "something bad happened"); in error_out()
105 return(Py_BuildValue(FORMAT,self->instance->FIELD)); \
112 return(specific_##NAME##_##FIELD(self->instance)); \
127 self->instance->FIELD =PyMem_Malloc(sizeof(DSTFORMAT)*n); \
128 MEMCPY((DSTFORMAT*)self->instance->FIELD ,f,n,DSTFORMAT); \
261 s->pData=NULL; \
262 s->numRows=0; \
263 s->numCols=0; \
273 s->numRows=PyArray_DIM(cdata,0); \
274 s->numCols=PyArray_DIM(cdata,1); \
276 s->pData = PyMem_Malloc(sizeof(TYP)*nb); \
277 MEMCPY(s->pData ,f,nb,TYP); \
291 s->pData=PyMem_Malloc(sizeof(TYP)*r*c); \
292 s->numRows=r; \
293 s->numCols=c; \
296 #define FREEMATRIX(s) PyMem_Free((s)->pData)
323 …dims[0]=mat->numRows; …
324 …dims[1]=mat->numCols; …
326 …PyArrayObject *OBJ=(PyArrayObject*)PyArray_SimpleNewFromData(ND, dims, NUMPYTYPE_FROMC, mat->pData…
327 …PyObject *capsule = PyCapsule_New(mat->pData, "cmsisdsp capsule",capsule_cleanup); …