Open btel opened 9 years ago
Great tutorial! Thanks for the work.
BTW I did not have time to update numpile.py, but it should be easily done.
It's hard to read the git diff for the changes to the type inference from the IPython notebook dump. Can you make the change in numpile.py?
done! you should see it in the PR.
LGTM, I'll just pull it and make sure everything builds fine.
The dot example gives wrong result due to an overflow in int32 accumulator. This PR fixes it by working with int64 arrays instead. To make this change feasible the following changes were implemented:
visit_Loop
method ofTypeInfer
to use consistently int32 on start, increment and end condition,alloca
was change to keyword argument for compatiblity with the new llvmpy