Closed vals closed 7 years ago
There seem to recently have been a change to Numpy to be more strict about e.g
10 ** np.arange(-4, 4)
This code above produces a ValueError in Numpy 1.13.0. Explicitly setting the dtype of np.arange solves the issue.
ValueError
dtype
np.arange
This prevents ValueError: Integers to negative integer powers are not allowed.
ValueError: Integers to negative integer powers are not allowed.
Thank you @vals.
There seem to recently have been a change to Numpy to be more strict about e.g
10 ** np.arange(-4, 4)
This code above produces a
ValueError
in Numpy 1.13.0. Explicitly setting thedtype
ofnp.arange
solves the issue.This prevents
ValueError: Integers to negative integer powers are not allowed.