Guest User

Untitled

a guest
May 26th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. octave:1> x=rand(1000,1000);
  2. octave:2> y=x;
  3. octave:3> y(y<0.99) = 0;
  4. octave:4> z=sparse(y);
  5. octave:5> tic; x*x; toc
  6. Elapsed time is 0.970735 seconds.
  7. octave:6> tic; x*y; toc
  8. Elapsed time is 0.968868 seconds.
  9. octave:7> tic; x*z; toc
  10. Elapsed time is 0.176392 seconds.
Add Comment
Please, Sign In to add comment