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

Cython Program With Numpy Arrays Does Not Allow Vectorized Inputs (only Accepts Length 1 Arrays), How To Fix?

FIXED: see updated code below. This is my first Cython attempt and have a working build but it does… Read more Cython Program With Numpy Arrays Does Not Allow Vectorized Inputs (only Accepts Length 1 Arrays), How To Fix?

How Do You Get Cimport To Work In Cython?

I have a directory structure as so: /my_module init.py A/ __init__.py a.pyx B/ __init__.py … Read more How Do You Get Cimport To Work In Cython?

Why Cython Compiler Generates A So With Suffix 'cpython-35m-x86_64-linux-gnu.so'

#setup.py from distutils.core import setup from distutils.extension import Extension from Cytho… Read more Why Cython Compiler Generates A So With Suffix 'cpython-35m-x86_64-linux-gnu.so'

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?

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'

Cython Buffer Declarations For Object Members

I want to have a Cython 'cdef' object with a NumPy member, and be able to use fast buffer a… Read more Cython Buffer Declarations For Object Members

Buffer Types Only Allowed As Function Local Variables, But That's What I'm Doing

Cython doesn't like numpy arrays in closures? %%cython import numpy as np cimport numpy as np … Read more Buffer Types Only Allowed As Function Local Variables, But That's What I'm Doing

How Can I Set Cython Compiler Flags When Using Pyximport?

This question (How does one overwrite the default compile flags for Cython when building with distu… Read more How Can I Set Cython Compiler Flags When Using Pyximport?