Difference between revisions of "Frob chop.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise sequential blank lines)
Line 19: Line 19:
 
==See also==
 
==See also==
 
[[Kernel_utilities#Numerical_infrastructure|Numerical infrastructure]], [[keep_rank.m]], [[ttclass/shrink.m]]
 
[[Kernel_utilities#Numerical_infrastructure|Numerical infrastructure]], [[keep_rank.m]], [[ttclass/shrink.m]]
−
 
  
 
''Version 2.1, authors: [[Ilya Kuprov]], [[Dmitry Savostyanov]]''
 
''Version 2.1, authors: [[Ilya Kuprov]], [[Dmitry Savostyanov]]''

Revision as of 11:25, 25 April 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