Quote:
Originally Posted by RyanCahoon
Using MATLAB 2012a on a Intel Core i7-3615QM:
Using linear equation solver (backslash operator): 0.26977 seconds
|
Ryan, could you please re-run this, without iterating? I want to eliminate the possibility that Matlab is optimizing out the iteration.
Code:
tic;
r1 = N \ d;
t1 = toc;
// also save r1 to a file here so the computation is not optimized out.
disp(['Linear solver ' num2str(t1)]);
tic;
r2 = inv(N) * d;
t2 = toc;
// also save r2 to a file here so the computation is not optimized out.
disp(['Invert and multiply ' num2str(t2)]);
Thanks.
PS - can someone with a working Octave installation please run this? also SciLab and R.