source: liacs/la/opdr7/spaceperc.m@ 115

Last change on this file since 115 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

File size: 314 bytes
RevLine 
[2]1function space = spaceperc(A, k)
2% given matrix A and top number k of eigenvalues
3% difference in size of A mxn and SVD U,S,V top k in percentage is given
4% size U=mxm (mxk), S=mxn (diag k), V=nxn (nxk)
5 [m, n] = size(A);
6 storA = m * n;
7 storAk = (m * k) + k + (n * k);
8 space = storAk * 100 / storA;
Note: See TracBrowser for help on using the repository browser.