mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-02 14:45:15 +02:00
np.import_array() added to files where cimport numpy used
This commit is contained in:
parent
4f3047e035
commit
e30ce11804
4 changed files with 19301 additions and 10711 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -6,6 +6,8 @@ cimport numpy as np
|
||||||
from cython.parallel import prange
|
from cython.parallel import prange
|
||||||
cimport cython
|
cimport cython
|
||||||
|
|
||||||
|
np.import_array()
|
||||||
|
|
||||||
ctypedef np.float64_t DTYPE_t
|
ctypedef np.float64_t DTYPE_t
|
||||||
|
|
||||||
cdef extern from "stationary_utils.h":
|
cdef extern from "stationary_utils.h":
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -9,6 +9,8 @@ from cython.parallel import prange, parallel
|
||||||
cimport numpy as np
|
cimport numpy as np
|
||||||
cimport scipy.linalg.cython_blas as cblas
|
cimport scipy.linalg.cython_blas as cblas
|
||||||
|
|
||||||
|
np.import_array()
|
||||||
|
|
||||||
def flat_to_triang(double[:, :] flat, int M):
|
def flat_to_triang(double[:, :] flat, int M):
|
||||||
"""take a matrix N x D and return a D X M x M array where
|
"""take a matrix N x D and return a D X M x M array where
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue