annotate tests/testmatlab.m @ 64:a115c982a0fd
Fixed bug in GAP: Lambdahat might get empty after row removing; in this case should stop and return current solution, otherwise it will raise an exception next time you try to remove rows
author |
Nic Cleju <nikcleju@gmail.com> |
date |
Tue, 13 Mar 2012 16:18:11 +0200 |
parents |
9079a9f7c4cf |
children |
|
rev |
line source |
nikcleju@7
|
1 disp('Eig');tic;data=rand(500,500);eig(data);toc;
|
nikcleju@7
|
2 disp('Svd');tic;data=rand(1000,1000);[u,s,v]=svd(data);s=svd(data);toc;
|
nikcleju@7
|
3 disp('Inv');tic;data=rand(1000,1000);result=inv(data);toc;
|
nikcleju@7
|
4 disp('Det');tic;data=rand(1000,1000);result=det(data);toc;
|
nikcleju@7
|
5 disp('Dot');tic;a=rand(1000,1000);b=inv(a);result=a*b-eye(1000);toc;
|
nikcleju@7
|
6 disp('Done');
|