Exponential function does not work for diagonal matrices
D = diagonal_matrix([0]) exp(D)
asked 2019-12-25 21:27:47 +0100
Anonymous
D = diagonal_matrix([0]) exp(D)
Thank you for the report. This is a bug with sparse matrices, which is now tracked at #28935.
As a workaround, you could use:
sage: diagonal_matrix([0], sparse=False).exp()
[1]
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2019-12-25 21:27:47 +0100
Seen: 229 times
Last updated: Jan 01 '20