mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-11-27 01:10:28 +01:00
use the dot-syntax to broadcast abs
This commit is contained in:
parent
ff4f9e7857
commit
ca3e606ab6
@ -201,7 +201,7 @@ function check_property_T(sett::Settings)
|
|||||||
|
|
||||||
if λ > 0
|
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!")
|
warn("The solution matrix doesn't seem to be positive definite!")
|
||||||
# @assert P == Symmetric(P)
|
# @assert P == Symmetric(P)
|
||||||
Q = real(sqrtm(Symmetric(P)))
|
Q = real(sqrtm(Symmetric(P)))
|
||||||
|
Loading…
Reference in New Issue
Block a user