|
function _safe_inv(x, tol, ε=0) |
|
if abs(x) < tol |
|
return zero(x) |
|
else |
|
return iszero(ε) ? inv(x) : _lorentz_broaden(x, ε) |
|
end |
|
end |
In the above lines, when the singular values are degenerate, the inv is set to zero. When they are not degenerate, the broadening is applied. Is this the purpose for broadening? I think it is in the opposite.
PEPSKit.jl/src/utility/svd.jl
Lines 442 to 448 in 7cfae1a
In the above lines, when the singular values are degenerate, the
invis set to zero. When they are not degenerate, the broadening is applied. Is this the purpose for broadening? I think it is in the opposite.