We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8431635 commit 6029108Copy full SHA for 6029108
mkl_fft/_pydfti.pyx
@@ -137,6 +137,12 @@ cdef extern from "src/mklfft.h":
137
char * mkl_dfti_error(int)
138
139
140
+# Initialize numpy
141
+cdef int numpy_import_status = cnp.import_array()
142
+if numpy_import_status < 0:
143
+ raise ImportError("Failed to import NumPy as dependency of mkl_fft")
144
+
145
146
cdef int _datacopied(cnp.ndarray arr, object orig):
147
"""
148
Strict check for `arr` not sharing any data with `original`,
0 commit comments