You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cholfact and cholfact! has an optional uplo input to only consider the upper/lower part of the matrix, but this is not taken into account when checking ishermitian(). For instance:
julia> A = [2.1.; 0.2.]
2×2 Array{Float64,2}:2.01.00.02.0
julia>cholfact(A, :U)
ERROR: ArgumentError: matrix is not symmetric/Hermitian. This error can be avoided by calling cholfact(Hermitian(A)) which will ignore either the upper or lower triangle of the matrix.
Stacktrace:
[1] cholfact(::Array{Float64,2}, ::Symbol) at ./linalg/cholesky.jl:344
This happened in the process of requiring that input is strict Hermitian either by value or Hermitian/Symmetric. I think the right fix is to remove the uplo argument completely. It is simpler only to pass it to the Hermitian/Symmetric constructors.
cholfact
andcholfact!
has an optionaluplo
input to only consider the upper/lower part of the matrix, but this is not taken into account when checkingishermitian()
. For instance:This faulty behavior is actually also tested(!).
The text was updated successfully, but these errors were encountered: