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

In C++/cython It Possible To Only Declare Relevant Attributes To Be Visible In Python?

Say I have a .h file with the following code: class MyClass { public: int Attribute1; … Read more In C++/cython It Possible To Only Declare Relevant Attributes To Be Visible In Python?

Python Setuptools: How Can I Install Package With Cython Submodules?

I have a python package named pytools. It contains a cython-based submodule nms. When I install the… Read more Python Setuptools: How Can I Install Package With Cython Submodules?

Calling C++ Code From Python Using Cython Whith The Distutilis Approach

I am trying to call a c++ code from a python script using cython. I already managed to work with an… Read more Calling C++ Code From Python Using Cython Whith The Distutilis Approach

Determine Whether A Python Function Is Already Implemented In C Extension

Suppose I have a Python program that runs slow- after profiliing and I have identified the bottlene… Read more Determine Whether A Python Function Is Already Implemented In C Extension

Cython String Concatenation Is Super Slow; What Else Does It Do Poorly?

I have a large Python code base which we recently started compiling with Cython. Without making an… Read more Cython String Concatenation Is Super Slow; What Else Does It Do Poorly?

Using Cython To Early Type Class Attributes

I'm writing a python class and I would like to accelerate the execution using cython early typi… Read more Using Cython To Early Type Class Attributes

How To Employ Something Such As Openmp In Cython?

Basically I have a problem that is pretty much embrassing parallel and I think I've hit the lim… Read more How To Employ Something Such As Openmp In Cython?

Does Compiled Standalone Cython Executable Still Contain All Original Source Code?

I'm experimenting with Cython and possibilities of code obfuscation (article). In that article … Read more Does Compiled Standalone Cython Executable Still Contain All Original Source Code?

Strange Segmentation Fault In Pyarray_simplenewfromdata

My question is similar 'in spirit' to Segmentation fault in PyArray_SimpleNewFromData I hav… Read more Strange Segmentation Fault In Pyarray_simplenewfromdata

How To Host Cython Web App On Heroku?

At the current moment I'm playing with Cython and trying to figure out how I can host a Cython … Read more How To Host Cython Web App On Heroku?

Cython Wrapping A Class That Uses Another Library

I've got some C++ code dbscan.cpp and dbscan.h that work great standalone. Now I'm trying t… Read more Cython Wrapping A Class That Uses Another Library

Cython: Counter-tutorial Behavior

Tutorial says .pyx and .pxd files should not have the same name unless .pyx is the realization of t… Read more Cython: Counter-tutorial Behavior

Importing Cython Function: Attributeerror: 'module' Object Has No Attribute 'fun'

I have written a small cython code that is #t3.pyx from libc.stdlib cimport atoi cdef int fun(char… Read more Importing Cython Function: Attributeerror: 'module' Object Has No Attribute 'fun'

How To Import Depending Cython Modules From Parent Folder In Python

Imagine the following folder structure: /project run.py /Helper Helper.pxd Helper.pyx … Read more How To Import Depending Cython Modules From Parent Folder In Python

Passing List Of Numpy Arrays To C Using Cython

I have a list list_of_arrays of 3D numpy arrays that I want to pass to a C function with the templa… Read more Passing List Of Numpy Arrays To C Using Cython

Cython - Memoryview Of A Dynamic 2d C++array

The Goal: Get a Memoryview from a 2D C++ char array using Cython. A little background: I have a nat… Read more Cython - Memoryview Of A Dynamic 2d C++array

Passing A Single Integer By Reference To Cython?

I'm trying to get a test project working that calls a C function, with a single integer paramet… Read more Passing A Single Integer By Reference To 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

Does Python Bytearray Use Signed Integers In The C Representation?

I have written a small Cython tool for in-place sorting of structures exposing the buffer protocol … Read more Does Python Bytearray Use Signed Integers In The C Representation?

How To Deallocate A Typed Numpy Array? Is Setting Callback_free_data A Viable Option?

While using an open source Cython library I found a memory leak. The leak seems to come from a type… Read more How To Deallocate A Typed Numpy Array? Is Setting Callback_free_data A Viable Option?