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

Writing Cython Extension: How To Access A C Struct Internal Data From Python?

Disclaimer: I took the following example from the Python Cookbook (O'Reilly). Let's say I h… Read more Writing Cython Extension: How To Access A C Struct Internal Data From Python?

Buffer Types Only Allowed As Function Local Variables, But That's What I'm Doing

Cython doesn't like numpy arrays in closures? %%cython import numpy as np cimport numpy as np … Read more Buffer Types Only Allowed As Function Local Variables, But That's What I'm Doing

How To Create A Custom Numpy Dtype Using Cython

There are examples for creating custom numpy dtypes using C here: Additionally, it seems to be poss… Read more How To Create A Custom Numpy Dtype Using Cython

Python Pyusb Hid Feature Report

I am accessing a USB HID Device using python hidapi from a Mac OSX 10.10.5 doing: import hid import… Read more Python Pyusb Hid Feature Report

How To Document Cython Function On Readthedocs

On ReadTheDocs I am not allowed to compile cython extensions, is it possible to configure sphinx in… Read more How To Document Cython Function On Readthedocs

Passing And Returning Numpy Arrays To C++ Methods Via Cython

There are lots of questions about using numpy in cython on this site, a particularly useful one bei… Read more Passing And Returning Numpy Arrays To C++ Methods Via Cython

Creating Small Arrays In Cython Takes A Humongous Amount Of Time

I was writing a new random number generator for numpy that produces random numbers according to an … Read more Creating Small Arrays In Cython Takes A Humongous Amount Of Time

Hello World Program In Cython Fails With Gcc After Installation Of Python-dev And Linking Libraries

I created a simple hello world program and tried to execute the generated C program using gcc but n… Read more Hello World Program In Cython Fails With Gcc After Installation Of Python-dev And Linking Libraries