mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-17 11:32:45 +08:00
BUG: Windows does not have round in math.h
This commit is contained in:
committed by
Stefan van der Walt
parent
b8149aca1b
commit
2f0d63955e
@@ -9,8 +9,10 @@ np.import_array()
|
||||
cdef extern from "math.h":
|
||||
double sqrt(double)
|
||||
double ceil(double)
|
||||
double round(double)
|
||||
double floor(double)
|
||||
|
||||
cdef double round(double val):
|
||||
return floor(val + 0.5);
|
||||
|
||||
cdef double PI_2 = 1.5707963267948966
|
||||
cdef double NEG_PI_2 = -PI_2
|
||||
|
||||
Reference in New Issue
Block a user