More efficient dot product function.
Mostra commenti meno recenti
Hello,
I am just wondering if anyone knows a more efficient function than the dot from MATLAB. I am running a very robust simulator that needs to compute over 3 million dot products (and possibly even more for different cases) throughout the course of the simulation. This leads to the dot products taking up the second most amount of time out of the many functions called by the simulator. I suspect that a lot of the time spent in the dot function is being wasted checking to make sure the vectors are properly sized.
Thanks for your help!
1 Commento
James Tursa
il 1 Lug 2013
How big are your vectors?
Risposta accettata
Più risposte (1)
Shashank Prasanna
il 1 Lug 2013
0 voti
BSXFUN is the most efficient way to do element wise dot operations:
Categorie
Scopri di più su Linear Algebra in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!