Skip to content Skip to sidebar Skip to footer
Showing posts with the label Cython

How To Call A Multi-threaded C Function In Cython?

I have a question about how to call a multi-threaded C function in Cython. Do I need to release/acq… Read more How To Call A Multi-threaded C Function In Cython?

Tutorials On Optimizing Non-trivial Python Applications With C Extensions Or Cython

The Python community has published helpful reference material showing how to profile Python code, a… Read more Tutorials On Optimizing Non-trivial Python Applications With C Extensions Or Cython

Return A 2d Cython Pointer To Python Array

I am currently passing from Cython to C the following pointer of a pointer: #convert the input… Read more Return A 2d Cython Pointer To Python Array

Using Cython To Expose Functionality To Another Application

I have this C++ code that shows how to extend a software by compiling it to a DLL and putting it in… Read more Using Cython To Expose Functionality To Another Application

Cython - Importing Cython Modules And Merging Them Into Single Shared Object

I am trying to wrap python functions to C++ apis using Cython. I have 2 modules sam1.pyx and sam2.p… Read more Cython - Importing Cython Modules And Merging Them Into Single Shared Object

Cythonized Function Unexpectedly Slow

I wanted to speed up a function that I'm using a lot and I though about using cython. However, … Read more Cythonized Function Unexpectedly Slow

Confusing Reference Ownership: How To Properly Deallocate (via Py_decref) Objects Of An Object?

I was analysing the following code, which compiles and runs correctly, but generates a memory leak.… Read more Confusing Reference Ownership: How To Properly Deallocate (via Py_decref) Objects Of An Object?

Cython Buffer Declarations For Object Members

I want to have a Cython 'cdef' object with a NumPy member, and be able to use fast buffer a… Read more Cython Buffer Declarations For Object Members