mathurinm/celer

BUG : max_iter = 0 causes cython to use an empty array for gap

mathurinm opened this issue · 2 comments

the sol[2][-1] breaks.

stupid fix: initialise cdef int t=0 (otherwise t not initialized in cython because for t in range(max_iter)) , and cdef floating[:] gaps = np.array(min(1, max_iter))
Maybe there's something better to do.

fixed in #211