@@ -37,16 +37,19 @@ See also [`eigh_vals(!)`](@ref eigh_vals) and [`eigh_trunc(!)`](@ref eigh_trunc)
3737@functiondef eigh_full
3838
3939"""
40- eigh_trunc(A; [trunc], kwargs...) -> D, V
41- eigh_trunc(A, alg::AbstractAlgorithm) -> D, V
42- eigh_trunc!(A, [DV]; [trunc], kwargs...) -> D, V
43- eigh_trunc!(A, [DV], alg::AbstractAlgorithm) -> D, V
40+ eigh_trunc(A; [trunc], kwargs...) -> D, V, ϵ
41+ eigh_trunc(A, alg::AbstractAlgorithm) -> D, V, ϵ
42+ eigh_trunc!(A, [DV]; [trunc], kwargs...) -> D, V, ϵ
43+ eigh_trunc!(A, [DV], alg::AbstractAlgorithm) -> D, V, ϵ
4444
4545Compute a partial or truncated eigenvalue decomposition of the symmetric or hermitian matrix
4646`A`, such that `A * V ≈ V * D`, where the isometric matrix `V` contains a subset of the
4747orthogonal eigenvectors and the real diagonal matrix `D` contains the associated eigenvalues,
4848selected according to a truncation strategy.
4949
50+ The function also returns `ϵ`, the truncation error defined as the 2-norm of the discarded
51+ eigenvalues.
52+
5053## Keyword arguments
5154The behavior of this function is controlled by the following keyword arguments:
5255
0 commit comments