VF_scalprodVD_scalprodVE_scalprod
FunctionScalar product of two vectors
Syntax C/C++#include <VFstd.h>
float VF_scalprod( fVector X, fVector Y, ui size );
C++ VecObj#include <OptiVec.h>
T vector<T>::scalprod( const vector<T>& Y );
Pascal/Delphiuses VFstd;
function VF_scalprod( X, Y:fVector; size:UIntSize ): Single;
Descriptionscalprod = sum( Xi * Yi )
The scalar (or dot) product of two vectors is defined as the sum of the products of the corresponding elements. The scalar product of a vector with itself is the square of its magnitude and may be calculated using the function VF_ssq.
Error handlingnone
Return valueproduct
See alsoVF_prod,   VF_xprod,   VF_sum,   VF_ssq

VectorLib Table of Contents  OptiVec home