Difference between revisions of "Frob chop.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Spot-edit Spinach function page first-line NOTOC and template fields)
m (Rename Arguments section heading to Parameters)
Line 6: Line 6:
 
       r=frob_chop(s,tol)
 
       r=frob_chop(s,tol)
  
−
==Arguments==
+
==Parameters==
  
 
     s  - a vector of singular values for a matrix,
 
     s  - a vector of singular values for a matrix,

Revision as of 17:49, 5 June 2026

Truncates SVD decomposition to the user-specified threshold in the Frobenius norm.

Syntax

     r=frob_chop(s,tol)

Parameters

   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