我寫了一個用Cython函數採用數字作爲參數列表/輸入memoryview並返回一個類型化Memoryview長度相同的: def test(list_data):
cdef unsigned int n = len(list_data)
cdef unsigned int i = 0
cdef double *results_arr = <double*>mallo
我開始研究一個到Fortran庫(BLAS/LAPACK)的SciPy接口,如下所示:Calling BLAS/LAPACK directly using the SciPy interface and Cython並提出了一個解決方案,但不得不求助於使用numpy.zeros,這實際上是直接通過調用Fortran代碼來殺死任何速度增益。問題是Fortran代碼需要一個0值輸出矩陣(它在內存中的矩