Difference between revisions of "Frob chop.m"
(Normalise sequential blank lines) |
m (Spot-edit Spinach function page first-line NOTOC and template fields) |
||
| Line 1: | Line 1: | ||
| − | {{DISPLAYTITLE:frob_chop.m}} | + | {{DISPLAYTITLE:frob_chop.m}} __NOTOC__ |
Truncates SVD decomposition to the user-specified threshold in the Frobenius norm. | Truncates SVD decomposition to the user-specified threshold in the Frobenius norm. | ||
Revision as of 17:28, 5 June 2026
Truncates SVD decomposition to the user-specified threshold in the Frobenius norm.
Syntax
r=frob_chop(s,tol)
Arguments
s - a vector of singular values for a matrix,
in descending order
tol - truncation threshold
Outputs
r - the number of singular values to keep
See also
Numerical infrastructure, keep_rank.m, ttclass/shrink.m
Version 2.1, authors: Ilya Kuprov, Dmitry Savostyanov