Created
September 19, 2016 13:45
-
-
Save synapticarbors/99270d9c90114948c325a16212b48353 to your computer and use it in GitHub Desktop.
Minimal Example that demonstrates Cython compilation bug introduced after 0.23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tlib import * | |
from tlib cimport * | |
import numpy as np | |
cimport numpy as np | |
class A(object): | |
def main(self, np.int32_t ix): | |
return 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
cimport numpy as np | |
cdef struct Y: | |
np.int8_t valid | |
char[2] source | |
np.int32_t ndate | |
np.int32_t jdate | |
np.float32_t[4] ltime | |
cdef struct YPAIR: | |
Y wq | |
Y tt | |
DEF _MAXR = 100 | |
cdef enum: | |
MAXR = _MAXR | |
cdef Y *tw[MAXR] | |
cdef YPAIR pairs[MAXR] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment