Difference between revisions of "DotProduct"
m (adding doc status category) |
|||
Line 1: | Line 1: | ||
[[category:Internal Functions]] | [[category:Internal Functions]] | ||
+ | [[Category:Doc Status C]] <!-- For Lumina use, do not change --> | ||
To compute the dot product of two vectors, use: | To compute the dot product of two vectors, use: |
Revision as of 07:23, 24 April 2007
To compute the dot product of two vectors, use:
Sum( A*B, I )
where I is the index shared by the two vectors.
The DotProduct function does the same, i.e., DotProduct(A,B,I). Analytica's parser recognizes a dot product of the form Sum(A*B,I) and optimizes it as a call to DotProduct, which avoids an allocation for the intermediate value of A*B. But DotProduct is not intended to be used explicitly.
Comments
Enable comment auto-refresher
Pdavis