np.import_array() added to files where cimport numpy used

This commit is contained in:
Alexander Pitchford 2018-10-18 16:39:37 +01:00
parent 4f3047e035
commit e30ce11804
4 changed files with 19301 additions and 10711 deletions

File diff suppressed because it is too large Load diff

View file

@ -9,6 +9,8 @@ from cython.parallel import prange, parallel
cimport numpy as np
cimport scipy.linalg.cython_blas as cblas
np.import_array()
def flat_to_triang(double[:, :] flat, int M):
"""take a matrix N x D and return a D X M x M array where