cython
How do I create a fixed-length, mutable array of Python objects in Cython?
I need to have an array of python objects to be used in creating a trie datastructure.I need a structure that will be fixed-length like a tuple and mutable like a list.I don\'t want to use a list beca[详细]
2023-02-07 21:41 分类:问答Extending Python with a C++ shared object library using Cython
So basically, I am attempting to write my own GUI wrapper in Python (Using GTK+, but I don\'t think that\'s relevant) for an API that is written in C++ and compiled by the user into a shared object fi[详细]
2023-02-07 05:02 分类:问答Cython recursive struct declarations
I\'m trying to use a C struct in Cython, that defines a linked list: typedef struct { struct query_result* next_result;[详细]
2023-02-06 01:35 分类:问答Wrapping a function which returns a pointer to a python object with ctypes
I\'ve got some code which comp开发者_运维技巧iles a C function to create a numpy generic function with it using PyUFunc_FromFuncAndData. I\'ve written some cython to create the ufunc but I\'d like to[详细]
2023-02-05 07:19 分类:问答Cython - properly declaring C funs
I\'m having trouble with runn开发者_如何学运维ing a bare example. I\'m using this to declare a function in Cython coming from cinterf.h header:[详细]
2023-02-04 10:59 分类:问答Cython float division PyExc_ZeroDivisionError checking
I\'m doing some loop-intensive calculations and converted the code into Cython. I did profiling with cython -a option, and inspected the .html file, and it seems whenever I do the float division, ther[详细]
2023-02-04 08:35 分类:问答Cython inline function with numpy array as parameter
Consider code like this: import numpy as np cimport numpy as np cdef inline inc(np.ndarray[np.int32_t] arr, int i):[详细]
2023-02-03 02:42 分类:问答Django Asynchronous Processing
I have a bunch of Django requests which executes some mathematical computations ( written in C and executed via a Cython module ) which may take an indeterminate amount ( on the order of 1 second ) of[详细]
2023-02-01 20:05 分类:问答Cython: call function from external C file
After Cython\'s \"Hello World\" and the example of calling a function in the C math libraries here, what I really want to do is to have C code of my own in a separate file and开发者_运维知识库 use it[详细]
2023-02-01 03:27 分类:问答Cython Install GCC error
Trying to install Cython on a small VPS running Ubuntu Server. Did sudo apt-get install gcc and then python setup.py install[详细]
2023-01-30 12:24 分类:问答