Skip to content
This repository was archived by the owner on Apr 24, 2020. It is now read-only.

Conversation

jez-w
Copy link
Contributor

@jez-w jez-w commented Sep 24, 2019

No description provided.

Jez added 2 commits September 24, 2019 11:08
faster, more pythonic and use techniques explained in the text
The np.poly1d() method takes the coefficients in decreasing powers
so they need to be flipped (np.flip()) before making the call

Improved the test case as this error wasn't detected when using
identical coefficients.

Moved the tested value to a variable rather than hard coded

Made the code more pythonic using np.ones_like() rather than
np.empty(len(coef))
@jstac
Copy link
Contributor

jstac commented Sep 24, 2019

Thanks @jez-w , I like your changes.

Currently this PR also changes python_essentials.rst. Could you remove that, since it's already covered in PR #688 ? If you do that then I'll merge.

@jez-w
Copy link
Contributor Author

jez-w commented Sep 25, 2019

My apologies for the mixup.

I have did a git revert on the 688 commit on the numpy correction branch. I hope this fixes the pb.

@jstac
Copy link
Contributor

jstac commented Sep 25, 2019

Thanks @jez-w, nice work.

@jstac jstac merged commit c218556 into QuantEcon:master Sep 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants