【在 w**d 的大作中提到】 : why bother? In the new version of Matlab, for loop won't slow your program : down.
w*d
10 楼
i need to dig out my notes. It might be related to the issue of memory. A senior engineer from mathworks once gave several lectures on Matlab. He told us so.
【在 s***t 的大作中提到】 : explain more?
s*t
11 楼
as far as i know, the matrix operations in matlab are implemented with BLAS. plus matlab is an intepreter, not a compiler (i know you can compile matlab code, but it's another story). these two reasons make it hard to believe for loops are as fast as matrix operations in matlab. i would certainly want to know any new development in matlab.
【在 w**d 的大作中提到】 : i need to dig out my notes. It might be related to the issue of memory. : A senior engineer from mathworks once gave : several lectures on Matlab. He told us so.
w*d
12 楼
i know it is hard to beat BLAS. In my understanding, the for-loop might be not as effecient as BLAS, but won't be slower than the standard for-loop in C or Fortran. But the main reason for the slow speed of for-loop is because during the for-loop, lots of intermediate variables are generated. In the new version, it is not done in that way if the matrix variable has been initialized. Mathworks has done something to improve the speed. You can go to the website of mathworks, and search with keywor
【在 s***t 的大作中提到】 : as far as i know, the matrix operations in matlab are implemented with BLAS. : plus matlab is an intepreter, not a compiler (i know you can compile matlab : code, but it's another story). these two reasons make it hard to believe : for loops are as fast as matrix operations in matlab. : i would certainly want to know any new development in matlab.
s*t
13 楼
sorry, just read my post again. it seems i always left some critical words in my sentences. i meant to say "i would certainly WANT TO know any new development" :) anyways, why search for "jitter"? isn't it variation in sampling time? i searched and didn't see many relavant results. can you give some links?
【在 w**d 的大作中提到】 : i know it is hard to beat BLAS. In my understanding, the for-loop might be not : as effecient as BLAS, but won't be slower than the standard for-loop in C or : Fortran. : But the main reason for the slow speed of for-loop is because during : the for-loop, lots of intermediate variables are generated. : In the new version, it is not done in that way if the matrix variable : has been initialized. : Mathworks has done something to improve the speed. You can go to the website of mathworks, and search with : keywor