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

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?

How To Load Matlab's Struct (saved With V7.3) In Python

I created a 1X20 struct in Matlab. This struct has 9 fields. The struct is saved in -v7.3 version b… Read more How To Load Matlab's Struct (saved With V7.3) In Python

Struct Alignment With Pyopencl

update: the int4 in my kernel was wrong. I am using pyopencl but am unable to get struct alignment … Read more Struct Alignment With Pyopencl

Pickling A Python Extension Type Defined As A C Struct Having Pyobject* Members

I am running C++ code via Python and would like to pickle an extension type. So I have a C++ struct… Read more Pickling A Python Extension Type Defined As A C Struct Having Pyobject* Members

Swig Function With Pointer Struct

Im new using SWIG to wrapped C shared library. I have problem to call a C function with Struct poin… Read more Swig Function With Pointer Struct

Python 2.7 - Clean Syntax For Lvalue Modification

It is very common to have struct-like types that are not expected to be modified by distant copyhol… Read more Python 2.7 - Clean Syntax For Lvalue Modification

Declare Struct Containing Time_t Field In Python Cffi

I am using CFFI to call a C function from Python that returns a struct. The struct is defined with … Read more Declare Struct Containing Time_t Field In Python Cffi

SWIG Function With Pointer Struct

Im new using SWIG to wrapped C shared library. I have problem to call a C function with Struct poin… Read more SWIG Function With Pointer Struct