use the dot-syntax to broadcast abs

This commit is contained in:
kalmar 2017-07-05 13:22:59 +02:00
parent ff4f9e7857
commit ca3e606ab6
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ function check_property_T(sett::Settings)
if λ > 0
isapprox(eigvals(P), abs(eigvals(P)), atol=sett.tol) ||
isapprox(eigvals(P), abs.(eigvals(P)), atol=sett.tol) ||
warn("The solution matrix doesn't seem to be positive definite!")
# @assert P == Symmetric(P)
Q = real(sqrtm(Symmetric(P)))