Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 430231c

Browse files
committed
addressing appveyor error
1 parent ceb268d commit 430231c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sklearn/utils/sparsefuncs_fast.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
#!python
1010
#cython: boundscheck=False, wraparound=False, cdivision=True
1111

12-
from libc.math cimport fabs, sqrt, pow, isnan
12+
from libc.math cimport fabs, sqrt, pow
1313
cimport numpy as np
1414
import numpy as np
1515
import scipy.sparse as sp
1616
cimport cython
1717
from cython cimport floating
18-
cdef extern from "numpy/npy_math.h" nogil:
19-
bint isnan "npy_isnan"(long double)
18+
19+
from numpy.math cimport isnan
2020

2121
np.import_array()
2222

0 commit comments

Comments
 (0)