Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- octave:1> x=rand(1000,1000);
- octave:2> y=x;
- octave:3> y(y<0.99) = 0;
- octave:4> z=sparse(y);
- octave:5> tic; x*x; toc
- Elapsed time is 0.970735 seconds.
- octave:6> tic; x*y; toc
- Elapsed time is 0.968868 seconds.
- octave:7> tic; x*z; toc
- Elapsed time is 0.176392 seconds.
Add Comment
Please, Sign In to add comment