Closed
Description
See https://travis-ci.org/github/QuantEcon/QuantEcon.py/jobs/676806846
There are several issues:
numba.targets.linalg
was moved tonumba.np.linalg
(numba/numba@b0c408c)- Tests for
nelder_mead
fail. This appears to be a bug with Numba because making changes in the following fashion at several places:
x_r = x_bar + ρ * (x_bar - vertices[worst_val_idx])
to
temp = ρ * (x_bar - vertices[worst_val_idx])
x_r = x_bar + temp
fixes the problem.
- Tests for
quad
fail. This appears to be related to the issue above because making the two following changes solves the issue:
pp = n * (z * p1 - p2)/(z * z - 1.0)
to
bottom = (z ** 2 - 1 )
pp = n * (z * p1 - p2) / bottom
and
weights[i] = 2 * xl / ((1 - z * z) * pp * pp)
to
weights[i] = 2 * xl / ((1 - z ** 2) * pp ** 2)
Metadata
Metadata
Assignees
Labels
No labels