Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
包中的 Cython Pickling“未找到”错误
我在腌制 Cython 类时遇到问题 但仅当它在包内定义时才有效 这个问题被注意到了以前在线 https groups google com forum msg cython users efRRFJVuZh8 x2 R8qHBlCkJ 但
python
pickle
Cython
将 Cython 中的 numpy 数组传递给需要动态分配数组的 C 函数
我有一些具有以下声明的 C 代码 int myfunc int m int n const double a double b double c So a是一个常量二维数组 b是一个二维数组 并且c是一个一维数组 全部动态分配 b and
python
c
Arrays
NumPy
Cython
使用 LoadLibrary 在 .pyd 中加载 cython cdef 函数时出现问题
我正在尝试在 C 中动态加载 cythonized pyd 在 Linux 机器中创建一个 so 文件 使用 so 我可以执行以下操作 plugin dlopen foo so RTLD LAZY init dlsym plugin PyI
Cython
LoadLibrary
pyd
对于结构,此处不允许使用 cdef 语句
我有一个带有结构定义的简单 Astruct pyx Astruct pxd cdef struct A int x int y int z 以及使用它的 Cython 函数 struct test pyx from random impor
Cython
如何安装 cython [重复]
这个问题在这里已经有答案了 在Windows上安装Kivy的过程中 我发现我需要Cython 我尝试使用安装它easy install cython 但这给出了以下错误 error Unable to find vcvarsall bat
python
Windows
python3x
Download
Cython
Cython 中的复数
在 Cython 中处理复数的正确方法是什么 我想使用 dtype np complex128 的 numpy ndarray 编写一个纯 C 循环 在 Cython 中 关联的 C 类型定义在Cython Includes numpy i
python
c
NumPy
Cython
complexnumbers
Pyinstaller 和 cython 应用程序文件太大
我正在创建可以在我的笔记本电脑上运行而无需安装 Python 的可执行文件 下面的工作完美 pyinstaller r file a so dll file a so r file b so dll file b so F bin hell
python
Compression
Cython
executable
pyinstaller
使用 cython 简单包装 C 代码
我有许多 C 函数 我想从 python 调用它们 cython 似乎是可行的方法 但我无法真正找到具体如何完成此操作的示例 我的 C 函数如下所示 void calculate daily char db name int grid id
python
NumPy
Cython
如何释放类型化 numpy 数组?设置callback_free_data是一个可行的选择吗?
在使用开源 Cython 库时 我发现内存泄漏 泄漏似乎来自类型化的 numpy 数组 当它超出范围时不会从内存中释放 声明如下 cdef np ndarray object ndim 1 my array np empty my size
python
NumPy
memoryleaks
Cython
使用 cython 比 struct.pack 更快
我正在努力做得比struct pack 以包装整数的具体情况为例 通过答案这个问题 https stackoverflow com questions 58960014 how to loop over a list in cython p
python
struct
Cython
pack
Cython 中的 extra_compile_args
我想传递一些额外的选项Cython编译器通过使用extra compile args My setup py from distutils core import setup from Cython Build import cythoni
Cython
使用 Python 对非常大的图像进行高性能变量模糊
我有大量大图像 例如 15000x15000 像素 我想对其进行模糊处理 我需要使用距离函数来模糊图像 因此距离图像中的某些区域越远 模糊就越严重 我有一个距离图 描述给定像素距区域的距离 由于图像量很大 我必须考虑性能 我看过 NumPY
python
imageprocessing
NumPy
scipy
Cython
构建 Cython 模块时如何覆盖 -DNDEBUG 编译标志
我有一个 Cython 模块 通过调用 C 函数cdef extern C 函数有assert 声明 我想核实这些说法 但是 当我通过调用创建模块时python setup py build ext inplace GCC 总是被调用 DN
python
c
Cython
Singleton 不在 Cython 中工作
这就是我定义单例的方式 class Singleton type instances def call cls args kwargs if cls not in cls instances cls instances cls super
python
python27
Cython
cythonize
在 Cython 类中,使用 __init__ 和 __cinit__ 有什么区别?
代码块1使用 init cython 3 cdef class c cdef int a str s def init self self a 1 self s abc def get vals self return self a sel
python
class
OOP
Cython
我可以使用什么方法来代替 python 中的 __file__ ?
我通过 cython 将 python 代码转换为 c 然后编译 c 文件并在我的项目中使用 so 我的问题 我用 file 在我的 python 代码和 gcc 编译时 它不会出现错误 但是当我运行程序并在其他 python 文件中导入
python
Cython
Python 中的解释与动态调度惩罚
我观看了 Brandon Rhodes 关于 Cython 的演讲 EXE 的日子即将到来 Brandon 在 09 30 提到 对于特定的一小段代码 跳过解释可以带来 40 的加速 而跳过分配和调度则可以带来 574 的加速 10 10
python
dynamicprogramming
Cython
performancetesting
dispatch
自定义 Cython 生成的 .so 文件的位置
我有一个 Cython 包 其中包含 C 库的包装器 这是包的树形结构 package api pxd wrap pyx setup py wrapper init py wrap py Doing python setup py buil
python
Wrapper
Cython
Python 3.4:为 64 位 Windows 编译 cython 模块
我有一个 pyx 模块 我一直在尝试通过各种方式编译它以与 Windows 上的 64 位 python 3 4 一起使用 但没有成功 经过大量的试验和错误 它确实可以编译 python setup py build ext inplace
Windows
python3x
Cython
distutils
mingww64
稀疏哈希映射对于特定数据非常慢
tl dr 为什么关键查找sparse hash map对于特定数据 速度变慢约 50 倍 我正在测试速度关键查找 for sparse hash map来自 Google 的稀疏哈希库 使用我编写的非常简单的 Cython 包装器 哈希表
python
c
performance
HashMap
Cython
«
1
2
3
4
5
6
7
...14
»