I implemented dot product operation using the definition and a for-loop. I did not expect it to be faster than the built-in function, but it appears to be a lot faster. (There are other faster ones; I tried the brute force way for comparison purposes. Meh) So I checked the source code for built-in dot(), it seems to be calling another built-in function sum(). However, the source code for sum does not seem to be visible. Expecting the built-in dot product product to be the fastest since I'm using it rather frequently, would anyone please explain why?
MATLAB: Is the built-in dot product function somewhat inefficient
dot productefficiency
Related Question
- Speed, functions and overheads
- Print command erroring with ‘Undefined function or method ‘findprop’ for input arguments of type ‘struct’.’
- How to find the maximum value of an image by using buit-in function in matlab
- Fast Element-Wise power
- Print command erroring with ‘Undefined function or method ‘findprop’ for input arguments of type ‘struct’.’
Best Answer