python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Cython cast changes underlying data?
Casting in C only changes how the data is interpreted, however the data stored in memory remains the same. By this logic, a char* cast before a void* cast should be equivalent to just having a void* c...
wojciech-graj
Votes: 0
Answers: 0
Speed up Cython implementation of dot product multiplication
I'm trying to learn cython by trying to outperform Numpy at dot product operation np.dot(a,b). But my implementation is about 4x slower.
So, this is my hello.pyx file cython implementation:
cimport nu...
Oliver Mohr Bonometti
Votes: 0
Answers: 1
Error when compiling Walrus Operator with Cython
conda version : 4.10.3
conda-build version : 3.21.5
python version : 3.8.12.final.0
user-agent : conda/4.10.3 requests/2.26.0 CPython/3.8.12 Windows/10 Windows/10.0.19042
cython ...

Andy
Votes: 0
Answers: 1
Cython: call Python function from inside prange()
The problem
I am trying to implement a threaded chunk manager for my game. But it gives the error:
f:\PyCraft\helpers\terrain_generator_helper.pyx:6:12: target may not be a Python object as we don't h...

N3RDIUM
Votes: 0
Answers: 0