-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
RFC: Fix behaviour of sqrtm on UpperTriangular matrices #12570
Conversation
Could you also add a test for this? |
98ab148
to
a528c23
Compare
@andreasnoack Thank you, I added a few tests which should achieve complete line coverage (of the |
Thanks. Just a small detail. We are moving towards using |
a528c23
to
8527eb6
Compare
I tried to use |
which version of Julia are you using? |
My current version was:
Now I am rebasing the branch on master, but I doubt things will change -- unless this symbol has been there for less than 2 days. Anyway, it really looks like it's just an issue of mine, the tests apparently work fine on AppVeyor and Travis. |
This is exactly what happend. #12472 |
@yuyichao Thank you, it works now. |
RFC: Fix behaviour of sqrtm on UpperTriangular matrices
Great. Thanks for fixing this. |
sqrtm
does not automatically promote the work matrix to a complex type if any of the elements on the diagonal is negative. An example of the issue is