Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
66 views

Cython was failing to compile with profile = True and I narrowed it down as far as I could. %%cython -a #cython: profile=True cdef class Foo: cdef: int bar def __init__(self): ...
Todd Sierens's user avatar
2 votes
1 answer
33 views

I have successfully externed from std::bitset a specific-sized bitset type using the cython extern API: cdef extern from "<bitset>" namespace "std" nogil: cdef cppclass ...
Todd Sierens's user avatar
Advice
0 votes
4 replies
155 views

I have a simple .py file in a directory called core_app\functions\my_function.py like this: from typing import Optional from core_app.routes.models import (Model1, Model2, Model3) from core_app.routes....
SomeDude's user avatar
  • 14.3k
4 votes
1 answer
72 views

The Cython docs discuss passing a pointer to a memoryview by using, e.g.: cdef double[::1] x_view = x # some array cdef double* ptr = &x_view[0] however, when that array x has no elements (x....
Bernie Roesler's user avatar
0 votes
1 answer
51 views

I am writing cython code with cython v3.1.5. I have defined these fused types: ctypedef fused index_t: int32_t int64_t ctypedef fused value_t: double double complex and am trying to ...
Bernie Roesler's user avatar
0 votes
1 answer
51 views

I am working on a Cython interface to a C library. I have this class: cdef class CholeskyFactor: cdef cholmod_factor *_factor # ... etc. def __cinit__(self, A, *, order=None, **kwargs): ...
Bernie Roesler's user avatar
20 votes
2 answers
2k views

I am having trouble making a simple "Hello World" python function which I can call from a C program. Here is the contents of my helloworld.py file: def hw(): print("Hello World") ...
vibe's user avatar
  • 635
0 votes
0 answers
44 views

I am trying to compile a standalone executable from a Python project. It consists of several Python files written by me, with one Module being the "main" with the main function as the entry ...
Simon T.'s user avatar
  • 145
3 votes
2 answers
149 views

I am using Cython to generate multiple C files from multiple Python files and then compile them using GCC. Using Python3.10 on Ubuntu 22.04 my tool flow works fine. When I switch to Kubuntu 20.04 with ...
Simon T.'s user avatar
  • 145
0 votes
0 answers
76 views

I’m using cyndilib (v0.0.6) on Windows to receive an NDI source and then forward it in a different resolution(this is just one of my use-cases, there are a lot others). The problem that I'm unable to ...
Yash mandlik's user avatar
0 votes
0 answers
36 views

I tried to use Cython to read a binary file line by line, but got errors during compiling the codes, due to, probably, getline. Simple test codes are as follows: # test_getline_cython.pyx cimport ...
Elkan's user avatar
  • 648
1 vote
2 answers
98 views

I have a function I need to implement which does not vectorize well, and so I am implementing it in Cython to make the nested for-loops workable. My problem is of a similar complexity as naive matrix-...
Matteo Alleman's user avatar
0 votes
0 answers
86 views

TL;DR: When pip install builds and installs wheels, how do I determine which versions of build tool packages (e.g. Cython) it used? How do I force it to use the same versions of those packages in the ...
macdjord's user avatar
  • 683
1 vote
1 answer
85 views

I am trying to get profile=True and %%prun to give a profile of the runtime for the compiled cython program. But on my Windows machine it is not working, the same code works on google colab. Cython ...
Todd Sierens's user avatar
0 votes
1 answer
48 views

I am getting an Error compiling Cython file, 'myproject/utils/hdf5.pxd' not found` when trying to build my Cython project in a certain way. My Cython project is organized this way: myproject/ setup....
Arthur's user avatar
  • 374

15 30 50 per page
1
2 3 4 5
357