cython
Optimizing my Cython/Numpy code? Only a 30% performance gain so far
Is there anything I\'开发者_如何学运维ve forgotten to do here in order to speed things up a bit? I\'m trying to implement an algorithm described in a book called Tuning Timbre Spectrum Scale. Also---i[详细]
2023-02-17 03:09 分类:问答Optimizing NumPy with Cython
I am currently trying to optimize the code that I had written in pure Python. This code uses NumPy very heavily as I am working with NumPy arrays. Below you can see the simplest of my classes that I c[详细]
2023-02-17 01:58 分类:问答Cython interface with other extensions
Is it possible to use both Cython and pure python extensions together? Say I\'d like to have a wrappe开发者_JAVA百科r for a C function, returning GdkPixbuf pointer. The ultimate goal would be to have[详细]
2023-02-16 17:11 分类:问答Cython - converting pointers to arrays into Python objects
Alright, I am so close to finishing this I can taste it. Over the past few week or so, I\'ve been attempting to create a Python extension to interface with a library written in C++ via Cython. With a[详细]
2023-02-16 09:28 分类:问答Cython - implementing callbacks
I have been working with Cython in an attempt to interface with a library written in c++. So far things are going pretty good, and I can effectively use MOST functions within the library. My only prob[详细]
2023-02-16 03:52 分类:问答Compiling pyx files with dependencies in different packages
I am having problems compiling cdef-ed types in different packages and I couldn\'t find an explanation in cython docs.[详细]
2023-02-15 04:23 分类:问答installing/building pymssql on Mac OS 10.6 (python 2.6)
As instructed in the README and here http://code.google.com/p/pymssql/wiki/Compilation, I\'ve installed Cython (v0.14.1), FreeTDS (v0.82 using MacPorts), and I already have XCode installed with gcc.[详细]
2023-02-15 03:01 分类:问答Compile main Python program using Cython
I have a Python2.6 program that can load Python modules compiled to .so files using Cython. I used Cython to compile the .py modules to .so files and everything works fine.[详细]
2023-02-13 08:43 分类:问答Cythonize a Python function to make it faster
Few weeks ago I asked a question on increasing the speed of a function written in Python. At that time, TryPyPy brought to my attention the possibility of using Cython for doing so. He also kindly gav[详细]
2023-02-08 15:12 分类:问答Problem building cython program under Windows
I was starting to play with cyt开发者_如何学JAVAhon on my windows xp machine configured with Python 2.6. I tried to run the simple example on the Cython site but the conversion of the example .pyx fil[详细]
2023-02-08 09:16 分类:问答