Suppose I have a calculation, in which some for cycles is required inside each other. For example: for n = 1:N; for j = 1:J; for m = 1:M*J; In this case runtime scales with N, and M linearly, but runtime grows quadratically with J. If we can vectorize the calculation somehow, vectorization can speed up. But is scaling remain the same?
MATLAB: Is vectorization preserve scaling of runtime
runtimevectorization
Related Question
- Is CELLFUN(@isempty) much slower than CELLFUN(‘isempty’)
- Are the times took for consequent tocs not consistent
- Does deleting a cell array of anonymous references with input arguments take longer than deleting the same array if the references have no input arguments in MATLAB 7.7 (R2008b)
- Effective way to estimate the big O runtime
- For statement – print on exactly 1 second
Best Answer