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

Are Executables Produced With Cython Really Free Of The Source Code?

I have read Making an executable in Cython and BuvinJ's answer to How to obfuscate Python code … Read more Are Executables Produced With Cython Really Free Of The Source Code?

Can A Cdef Class Store A Variable That Isn’t (type-)declared?

I’m curious if the following is valid, where only some of the variables are type-declared in a type… Read more Can A Cdef Class Store A Variable That Isn’t (type-)declared?

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 Get Cython And Gensim To Work With Pyspark

I'm running a Lubuntu 16.04 Machine with gcc installed. I'm not getting gensim to work with… Read more How To Get Cython And Gensim To Work With Pyspark

Fixed-size Sequence Of Bytestrings In Cython

I am new to Cython and have very little experience with C so bear with me. I want to store a fixed… Read more Fixed-size Sequence Of Bytestrings In Cython

Cython Attributeerror: 'module' Object Has No Attribute 'declare'

Compiling .pyx files was working fine but suddenly it started raising error when I type: python set… Read more Cython Attributeerror: 'module' Object Has No Attribute 'declare'

Embed Python Function In C++

I am experimenting with Cython to generate c code from python but there seems to be some issues wit… Read more Embed Python Function In C++

Compiling Pyx Files

I've just started to learn cython and this is the first time that I'm trying to compile .py… Read more Compiling Pyx Files

Optimizing Strings In Cython

I'm trying to demonstrate to our group the virtues of Cython for enhancing Python performance. … Read more Optimizing Strings In Cython

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

Difference Between Np.int, Np.int_, Int, And Np.int_t In Cython?

I am a bit struggled with so many int data types in cython. np.int, np.int_, np.int_t, int I guess … Read more Difference Between Np.int, Np.int_, Int, And Np.int_t In Cython?

Cython Memoryview Transpose: Typeerror

I'm trying to develop a small Convolutional Neural Network framework with python. The code for … Read more Cython Memoryview Transpose: Typeerror

Do Locally Set Cython Compiler Directives Affect One Or All Functions?

I am working on speeding up some Python/Numpy code with Cython, and am a bit unclear on the effects… Read more Do Locally Set Cython Compiler Directives Affect One Or All Functions?

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

How Do I Use The Correct Dll Files To Enable 3rd Party C Libraries In A Cython C Extension?

I have a C function that involves decompressing data using zstd. I am attempting to call that funct… Read more How Do I Use The Correct Dll Files To Enable 3rd Party C Libraries In A Cython C Extension?

When Profiling Cython Code, What Is `stringsource`?

I have a heavy Cython function that I'm trying to optimize. I am profiling per this following … Read more When Profiling Cython Code, What Is `stringsource`?

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

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

Porting Cython Files From Python2 To Python3 With 2to3

I have a python package which was developed under python2.7, but I need to port it to python3.6 . I… Read more Porting Cython Files From Python2 To Python3 With 2to3

How To Call A Multi-threaded C Function In Cython?

I have a question about how to call a multi-threaded C function in Cython. Do I need to release/acq… Read more How To Call A Multi-threaded C Function In Cython?