You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using truncated decompositions such as [`svd_trunc`](@ref), [`eig_trunc`](@ref), or [`eigh_trunc`](@ref), an additional truncation error value is returned.
30
+
This error is defined as the 2-norm of the discarded singular values or eigenvalues, providing a measure of the approximation quality.
31
+
For `svd_trunc` and `eigh_trunc`, this corresponds to the 2-norm difference between the original and the truncated matrix.
32
+
For the case of `eig_trunc`, this interpretation does not hold because the norm of the non-unitary matrix of eigenvectors and its inverse also influence the approximation quality.
33
+
34
+
35
+
For example:
36
+
```julia
37
+
U, S, Vᴴ, ϵ =svd_trunc(A; trunc=truncrank(10))
38
+
# ϵ is the 2-norm of the discarded singular values
0 commit comments