[Numpy-discussion] Assign shifted diagonal values with `np.fill_diagonal` and similar behaviour as `np.diag`
Ivan Gonzalez
scratchmex at gmail.com
Mon Dec 14 22:30:08 EST 2020
As the subject says it will be great if `np.fill_diagonal` had a k-ith
diagonal argument as `np.diag` does. The behavior expected (and a hack for
the solution) is better explained in the following StackOverflow questions
by me:
https://stackoverflow.com/questions/65299295/assign-shifted-diagonal-values-with-np-diag/65299483
I had posted an issue on numpy repo as well:
https://github.com/numpy/numpy/issues/18000
Hope to hear your suggestions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/numpy-discussion/attachments/20201214/1d353b23/attachment.html>
More information about the NumPy-Discussion
mailing list