-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH Add Array2::from_diag #673
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this; I've wanted this functionality in the past.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added one more comment. Everything else looks good.
Thanks for the detailed review @jturner314 ! I added an example and panic conditions as you suggested. The only remaining point is #673 (comment) that I'm not sure how to address. You previously marked it as resolved, so I don't know if some action is needed on my part. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me; I just made one minor change. Thanks for this!
I'll merge this once CI passes.
Thanks again for the review @jturner314 ! |
Adds a
Array2::from_diag
method to create 2D arrays from a diagonal.Closes #672