Does matlab 2012a auto vactorize?
조회 수: 1 (최근 30일)
이전 댓글 표시
I recently had 2012a installed at work. I had previously had 2010. I noticed a surprising performance improvement in code that contained for loops, that had not been vectorized. Several people at work noticed this causing us to speculate that matlab contained an internal vectorized version of "for".
Can anyone shed light on this? Thanks.
댓글 수: 0
채택된 답변
Walter Roberson
2012년 7월 28일
Yes, between those two releases, MATLAB did make a significant optimization improvements. One of the significant improvements was that MATLAB now automatically predicts preallocation requirements, saving significant time in memory management if the programmer had not put in preallocation.
댓글 수: 0
추가 답변 (1개)
David Bergman
2012년 7월 28일
댓글 수: 1
Star Strider
2012년 7월 28일
For documentation, I refer you to ‘Release Notes’: http://www.mathworks.com/help/techdoc/rn/rn_intro.html.
For the rest I refer you to Walter Roberson.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!