cythonize

Cython: Passing pointer created by Python wrapper class to C function

Cython: Passing pointer created by Python wrapper class to C function Question: I am following the Cython Documentation to define a class that is created from an existing C pointer: # Example C struct ctypedef struct my_c_struct: int a int b cdef class WrapperClass: """A wrapper class for a C/C++ data structure""" cdef my_c_struct *_ptr …

Total answers: 1

As of 2023, is there any way to line profile Cython at all?

As of 2023, is there any way to line profile Cython at all? Question: Something has substantially changed with the way that line profiling Cython works, such that previous answers no longer work. I am not sure if something subtle has changed, or if it is simply totally broken. For instance, here is a very …

Total answers: 1

cl : Command line warning D9002 : ignoring unknown option "-O3"

cl : Command line warning D9002 : ignoring unknown option "-O3" Question: I want to build a project that uses various flags by type -O3 -Wall -std=c++11 using cython, but I get an error: cl : Command line warning D9002 : ignoring unknown option Maybe it is possible to replace compilation with VS with Cmake, …

Total answers: 1