Ask Your Question
0

Exponential function does not work for diagonal matrices

asked 2019-12-25 14:27:47 -0500

anonymous user

Anonymous

D = diagonal_matrix([0]) exp(D)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2020-01-01 12:41:36 -0500

mwageringel gravatar image

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]
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-12-25 14:27:47 -0500

Seen: 58 times

Last updated: Jan 01