提问:matlab效率问题(不同机器上)# Computation - 科学计算
f*n
1 楼
从linux版转来的,因为听说这里牛人更多 :-)
注意:我的问题只是好奇,不是问这个具体问题该用那个软件(当然也欢迎这方面的
remarks )
Hi, guys:
Just write a very simple code to compare perf. of Matlab:
//svd.m
for i=1:1000
for j=1:1000
m(i,j)=1/(i+j);
end;
end;
t0=cputime;
svd(m); //compute the SVD decomposition.
cputime-t0
Test result:
1) P4 1.8G A : 6.7s
2) Barton running at 1.4GHz: 9.3s
3) Sun (anybody tells me how to see the cpu type of a Sun machine?): 21.0s
(though it is a public machine, at least 60% cpu time is idle, so I assume my
measur
注意:我的问题只是好奇,不是问这个具体问题该用那个软件(当然也欢迎这方面的
remarks )
Hi, guys:
Just write a very simple code to compare perf. of Matlab:
//svd.m
for i=1:1000
for j=1:1000
m(i,j)=1/(i+j);
end;
end;
t0=cputime;
svd(m); //compute the SVD decomposition.
cputime-t0
Test result:
1) P4 1.8G A : 6.7s
2) Barton running at 1.4GHz: 9.3s
3) Sun (anybody tells me how to see the cpu type of a Sun machine?): 21.0s
(though it is a public machine, at least 60% cpu time is idle, so I assume my
measur