-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
isposdef not defined for symmetric matrices #422
Comments
@fredrikekre Why is |
For cases like this: julia> A = complex.(rand(2, 2), rand(2, 2))
2×2 Array{Complex{Float64},2}:
0.127036+0.875987im 0.702463+0.796754im
0.631628+0.488688im 0.214832+0.825713im
julia> ishermitian(Symmetric(A))
false |
@fredrikekre I see, thanks. I forgot that one can make a complex symmetric matrix. |
I think the post 0.6 solution should be to store |
The standard linalg function
isposdef
does not work for symmetric matrices (recent git master):The last line fails with an error:
which I guess is caused by a missing definition. One workaround is to access underlying matrix directly but it is inconvenient:
I think this behavior is not correct and surprising for each user, I have not found any mention of such limitation in the documentation. There is an additional implementation for Diagonal matrices and this works fine:
The text was updated successfully, but these errors were encountered: