Scipy splprep(样条线准备)生成一个元组tckp
元组(t,c,k)包含节点向量的元组,
B样条系数和样条的阶数。在
tckp = [array[double,double ,..,double],
[array[double,double ,..,double],
array[double,double ,..... ,double],
array[double,double ,..... ,double]], int]
我如何构造和填充一个等效的Cython结构来使用
Cython中的splev(样条求值)
Tags:
正如注释中所讨论的,这取决于如何将
tckp
传递给其他函数。存储此信息并传递给其他函数的一种方法是使用struct
。在在下面的示例中,使用
struct
将tckp
列表传递给一个cdef
函数,该函数以void *
作为输入,模拟一个C函数。。。此示例函数假定int0
是数组的大小,则向所有数组添加1。在相关问题 更多 >
编程相关推荐