Skip to content

Commit

Permalink
COSMIT shut up the build by calling np.import_array in Cython modules
Browse files Browse the repository at this point in the history
$(make in 2>&1 | wc -l) down from 706 to 517.

Took the liberty of modernizing some of the Cython code while I was at it.
  • Loading branch information
larsmans committed Jan 10, 2013
1 parent 47502d3 commit 37c1d09
Show file tree
Hide file tree
Showing 44 changed files with 25,904 additions and 20,220 deletions.
4,090 changes: 2,429 additions & 1,661 deletions sklearn/_hmmc.c

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions sklearn/_hmmc.pyx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from libc.math cimport exp, log
import numpy as np
cimport numpy as np
cimport cython

cdef extern from "math.h":
double exp(double)
double log(double)
np.import_array()

ctypedef np.float64_t dtype_t

Expand Down
Loading

0 comments on commit 37c1d09

Please sign in to comment.