Numpile基于 LLVM 的科学计算 Python 包
Numpile 是极小的,由千行 Python 代码构成的,基于 LLVM 的数值科学计算工具。
from numpile import autojit @autojit def dot(a, b): c = 0 n = a.shape[0] for i in range(n): c += a[i]*b[i] return c a = np.array(range(1000,2000), dtype='int32') b = np.array(range(3000,4000), dtype='int32') print dot(a,b)
更多介绍请看这里。
评论
SciPyPython 的科学计算包
SciPy(pronounced"SighPie")是一个开源的数学、科学和工程计算包。示例代码:fromscipyimportoptimize,specialfromnumpyimport*from
SciPyPython 的科学计算包
0
NumPHPPHP 科学计算包
NumPHP是基于NumPy的PHP科学计算包。这个PHP类库并不是用来解决大型计算问题,而是支持你的PHP应用处理基础的科学计算问题。矩阵$matrix = new NumArray( [
NumPHPPHP 科学计算包
0