1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-08-08 07:53:52 +02:00

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

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)))