开发者

cython

0
  • Simple wrapping of C code with cython

    I have a number of C functions, and I would like to call them from python. cython seems to be the way to go, but I can\'t really find an example of how exactly this is done. My C function looks like t[详细]

    2023-01-03 08:05 分类:问答
  • 64-bit integers in Cython

    I\'m trying to interface a C++ library (pHash) with Python using Cython, but I have trouble with some of the type开发者_如何学JAVAs. The library functions use \"unsigned long long\" and I can\'t find[详细]

    2023-01-03 05:50 分类:问答
  • Python: pyximporting a pyx that depends on a native library

    My pyx depends upon a native library How can I pyximport.install() it?The auto-build in pyxinstall doesn\'t know to link with the native libr开发者_开发知识库ary, so the build fails...You can also sp[详细]

    2022-12-28 21:28 分类:问答
  • Fibonacci Function Question

    I was calculating the Fibonacci sequence, and stumbled across this code, which I saw a lot: int Fibonacci (int x)[详细]

    2022-12-28 16:14 分类:问答
  • Cython Speed Boost vs. Usability [closed]

    Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing[详细]

    2022-12-28 10:08 分类:问答
  • 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 shared library. I then changed some of the code t[详细]

    2022-12-26 22:23 分类:问答
  • I need to speed up a function. Should I use cython, ctypes, or something else?

    I\'m having a lot of fun learning Python by writing a genetic programming type of application. I\'ve had some great advice from Torsten Marek, Paul Hankin and Alex Martelli on this site.[详细]

    2022-12-26 19:01 分类:问答
  • Emitting Cythonic warnings?

    In Cython, the usual raise keyword emits C code that contains a reference to the line and name of the Cython source file, allowing a useful error message to be generated.[详细]

    2022-12-26 18:59 分类:问答
  • Can Cython compile to an EXE?

    I know what Cythons purpose is.It\'s to write compilable C extensions in a Python-like language in order to produce speedups in your code.What I would like to know (and can\'t seem to find using my go[详细]

    2022-12-25 23:32 分类:问答
  • Trouble using eval() with cython

    I was trying to speed up some code, and then I tried compiling a class and a function using cython and WOW! I havn\'t measured it yet but it looks at least 10x faster.[详细]

    2022-12-25 16:44 分类:问答