Hello all,
I am trying to optimize some code that contains element wise calculations with rather large matrices. I have already shaved off about 50% with things like the bsxfun (which in my case works wonders). But now I am stuck at an operation where a simple line of code value=matrix.^3 takes up most of the runtime of the script. is there any way to perform this element-wise calculation faster?
Best regards
1 Comment
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/364045-fast-element-wise-power#comment_498783
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/364045-fast-element-wise-power#comment_498783
Sign in to comment.