| VF_scalprod | VD_scalprod | VE_scalprod |
|
| Function | Scalar 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/Delphi | uses VFstd;
function VF_scalprod( X, Y:fVector; size:UInt ): Single; |
|
| Description | scalprod = 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. |
|
|
|
|