Difference between revisions of "Keep rank.m"
(Normalise sequential blank lines) |
m (Rename Arguments section heading to Parameters) |
||
| Line 6: | Line 6: | ||
A=keep_rank(A,rank) | A=keep_rank(A,rank) | ||
| − | == | + | ==Parameters== |
A - real or complex matrix, will be | A - real or complex matrix, will be | ||
Revision as of 18:49, 5 June 2026
Truncates the singular value decomposition at the specified rank and reassembles the matrix.
Syntax
A=keep_rank(A,rank)
Parameters
A - real or complex matrix, will be
converted to full if a sparse
matrix is received
rank - number of singular values to keep
Outputs
A - filtered matrix, returned as full
See also
Numerical infrastructure, frob_chop.m, ttclass/shrink.m
Version 2.5, authors: Ilya Kuprov