Replies: 1 comment 2 replies
-
Hey - thanks for bringing this up! This is really interesting – the only thing that gives me pause here is the explicit inverse computation, which I suspect may cause the algorithm to be unstable or inaccurate for near-singular matrices. Have you looked at the accuracy in that domain? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Based on Denman-Beavers iterations as given in Lemma 3.2 of Cheng et al. (2001). I found the reference in Higham (2010).
A possible workaround for #16579. Tagging @jakevdp in case they are interested (if not, my apologies for the unnecessary tag).
I used
%timeit
to measure the timings and checked the accuracy wrtjax.scipy.linalg.sqrtm
on my machine using a CPU backend. The performance hit is not too great. And the accuracy is quite good too.Beta Was this translation helpful? Give feedback.
All reactions