Important: The information in this document is obsolete and should not be used for new development.
VectorMultiply
You can use theVectorMultiply
function to obtain the dot product of two vectors with 64-bit accuracy.
wide *VectorMultiply(long count, const long *vector1, long step1, const long *vector2, long step2, wide *dot);
count
- The size of each vector.
vector1
- A pointer to one of the two vectors.
step1
- The index increment for the
vector1
vector.vector2
- A pointer to the second of two vectors.
step2
- The index increment for the
vector
2 vector.dot
- A pointer to the destination of the result.
- function result
- A pointer to the dot product of the two vectors.
DESCRIPTION
TheVectorMultiply
function calculates thewide
dot product of the parametersvector1
andvector2
. The size of each vector is given by thecount
parameter. The index increment is given by the parametersstep1
andstep2
, respectively. Thedot
parameter points to the destinationwide
number and is returned as the function result.SEE ALSO
Examples of how to use theVectorMultiply
function are provided in the section "Performing Vector Operations" beginning on page 8-29.