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
Allow np.fill_diagonal to fill sub or super diagonals too #14402
Comments
If we made
|
This comment has been minimized.
This comment has been minimized.
Given that the docs currently say that 1.19 will return a read only view, I’d say our options are a little limited there. fill_diagonal can be changed to work now. There is no reason we can’t pursue both. |
Don't they say 1.9 not 1.19? If we made it writeable, that's 9 release cycles for people to fix their code, which might be enough. |
I should read more carefully. It does say 1.9. Maybe now is the time then. |
I actually made that change some years ago, but it broke a (rather obscure) test. Maybe it is time to revisit it. |
@Aa88s please stop posting random comments. That's not acceptable on this repo nor any other open source project. |
It would be really nice if
np.fill_diagonal
could fill other diagonals besides the main diagonal. This would match theoffset
argument ofnp.diagonal.
Shouldn't require much code to allow this.
The text was updated successfully, but these errors were encountered: