We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6069be6 commit cef025dCopy full SHA for cef025d
docs/src/user_interface/truncations.md
@@ -149,10 +149,8 @@ julia> size(U)
149
julia> size(Vh)
150
(2, 3)
151
152
-julia> # Verify the truncated decomposition approximates the original
153
- reconstruction_error = norm(B - U * S * Vh);
154
-
155
-julia> reconstruction_error < 2.1 # Error is small (equals smallest discarded singular value)
+julia> # Verify the truncated decomposition error equals the discarded singular values
+ norm(B - U * S * Vh) ≈ norm(svd_vals(B)[3:end])
156
true
157
```
158
0 commit comments