Cython Questions
Ad
Is there a limit to how large an array can be inside of a function in cython?
This code compiles and runs just fine: cdef enum: size = 1000000 cdef int ar[size] cdef int i for i in range(size): ar[i]
Compilation error when using the move method in Cython
My question is similar to the one asked here -
PyCharm CE does not recognize .pyx files
Pycharm community edition (ce) does not recognize few cython files as shown in the picture below (with pycharm red mark under the file name).
numpy faster than numba and cython , how to improve numba code
I have a simple example here to help me understand using numba and cython. i am `new to both numba and cython. i've tried my best with to
Cython on Termux. ImportError: dynamic module does not define module export function (PyInit_libmc)
I'm trying to use python/cython on android within termux. i got python, cython pip-installed - with no 'obvious' problems. now i have two simple
How to transfer a built Cython extension from a PC to another?
I have a pc in which i can not run setup.py file when i build a cython extension, because i do not have admin rights to install vc++ 14.0 (for
Can cython optimize python dictionary memory and lookup speed as well?
I have a class which primarily contains the three dicts: class kb(object): def __init__(self): # key:str value: list of str
Alternatives to using nested functions in PySpark mapPartitions when using Cython?
I have a row-wise operation i wish to perform on my dataframe which takes in some fixed variables as parameters. the only way i know how to do
__init__ not called when Cythoning a Kivy App
So i've cythoned my kivy app and got some strange behaviour. any class defined in pure kv works, any class defined in pure python works. however
How to build the cython doc on readthedoc and in local
I am currently working on a cython project. after following some tutorials, i was able to build in place cython, then use
Ad
What are all the types available in Cython?
During a cython meetup a speaker pointed to other data types such as cython.ssize_t. the type ssize_t is briefly
Pandas source code import multiple modules
I was looking at the pandas source code
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 native
Does Cython compile imported modules as part of the binary?
I'm just now reading into cython and i'm wondering if cython compiles imported modules as part of the executable of if you still need to have the
Does compiled standalone Cython executable still contain all original source code?
I'm experimenting with cython and possibilities of code obfuscation
NumPy: how to left join arrays with duplicates
To use cython, i need to convert df1.merge(df2, how='left') (using pandas) to plain numpy, while i found
cython array in pure python mode
I wish to unpack columnar data coming through a socket - a bunch of ints, then a bunch of floats etc., so it is faster than with
using iterator in cython
I am trying to learn cython and i modified the example found
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 function using cython.
Speeding up itertools combinations with cython
I have the following code to generate all possible combinations in specified range using itertools but i cant get any speed improvements from
Return a 2D Cython pointer to Python array
I am currently passing from cython to c the following pointer of a pointer: #convert the input python 2d array to a memory
Ad
Compiling a wrapper for a c library using Cython - Linker cant find .dylib of external c library on OSX
I have written a wrapper in cython for an integration function from nag
Where are these extra compiler flags coming from when using setup.py to compile a Cython extension?
I am trying to compile a simple little hello world example to get a feel for cython. it works, but the compilation is littered with flags that i
How can I use a python variable as an input / output for a C function using Cython?
So i have a c implementation of a hashmap where i can store heterogeneous data. the interface for it looks something like this:
C/Cython return value depends partially on frame/function to which the value is being returned
I've been trying to debug this c/cython program for days now, and i'm getting very close. the
Cython openMP in OSX... no build
I 'm fighting 3 days now to setup my venv... i need cython, openmp.... my ide is pycharm prof in macos... i have tried plenty solutions with no
Optimize away PyFloat_FromDouble, Pyx_GetItemInt and PyObject_RichCompare in Cython generated C code
I am trying to write a run length encoding arithmetic library for python in cython. below you see how the declaration and the important parts of
Arrays allocated at same address Cython + Numpy
I came across some funny memory behavior working with numpy + cython, while trying to get data from a numpy array as a c array, to use in a
Cython c++ module, constructor called multiple times
I am trying to wrap my c++ class into python using cython. i am able to create the so file and import in python, but the constructor of my c++
Cython: unable to call non static methods of shared library
My problem is pretty simple, i have a shared library compiled with cmake and i want to write a python wrapper for one cpp class it contains and a
Cython: ImportError: No module named 'myModule': how to call a cython module containing a cimport to another cython nodule?
I'm trying to import a cython module data.pyx into another cython module user.pyx. everything compile fine, but when i try to call user.pyx in a
Cython nogil with ThreadPoolExecutor not giving speedups
I was under the assumption that if i write my code in cython using the nogil directive, that would indeed bypass the gil and i could
Ad
Cython define fixed length array of pointers
I am fairly new to cython and haven't done any c in a long time, so this may be fairly obvious, but i don't know how to go about doing it.
Pass complex numpy array to C++ in Cython
I want to cythonize portion of a pyx script which involves work with numpy arrays with complex numbers. the relevant portion of the
Foreign function: who deallocates memory?
I'm calling a go function from python. go function returns a string, specifically, a gostring with the string itself being allocated
Cython code doesn't work
I wrote some python code and it worked fine when using the "python". i then converted it to c using "cython" and used distutils to compile it to a
Specifying Exact CPU Instruction Set with Cythonized Python Wheels
I have a python package with a native extension compiled by cython. due to some
Cython external library
So i'm trying to include steam api library and i can't figure out how to do that in setup.py. currently i have: from
Cython setup error : Unable to find pgen, not compiling formal grammar
In order to install cython ( for python 2.7 , windows 8.1 ), made the download in .zip format, extracted the whole file and run the setup.py .
Creating an executable from Cython Code
I am trying to create an executable in cython, following the directions here:
How do I set constants at run-time in a c++ header file, imported through Cython?
I have some c++ code that currently relies on hard-coded constants, which are imported into multiple other cpp files, and i would like my python
Cython Fatal Error: Python.h No such file or directory
I have been using cython to compile my python files into c files and then use mingw to create an executable from the c file. cython works fine, i
Will compiling python files to cython speed up the program?
Will i see improvement in speed if i compile my python files to cython? or do i need to rewrite my code in cython to actually see the
Ad
Blog Categories
Ad