mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-12-27 18:55:30 +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
|
||||
|
||||
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)))
|
||||
|
Loading…
Reference in New Issue
Block a user