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

Pointer-type Mismatch With Pyarray_simplenew

I am creating a module for Python with Numpy using the C API and encounter weird incompatibilities … Read more Pointer-type Mismatch With Pyarray_simplenew

What Is The Correct Pointer Type To Return From A Ctypes Callback?

I have a ctypes callback that takes a pointer to two doubles from the dll and returns a pointer to … Read more What Is The Correct Pointer Type To Return From A Ctypes Callback?

How To Pass A 2d Array From Python To C?

I'm trying to pass a 2d array from Python to C, using ctypes. The array dtype is uint16. I wrot… Read more How To Pass A 2d Array From Python To C?

Cython Implementation No Faster Than Pure Python

For an exercise I've written a XOR doubly-linked list %%cython from cpython.object cimport PyO… Read more Cython Implementation No Faster Than Pure Python

How Do I Convert A Pointer Returned By A C Function Invoked Using Ctypes Into A Numpy Array?

I have a function in C which returns an array of data and its length. Everything compiles and works… Read more How Do I Convert A Pointer Returned By A C Function Invoked Using Ctypes Into A Numpy Array?