VF_Euclid | VD_Euclid | VE_Euclid |
|
Function | Calculates the Euclidean norm of a vector |
|
Syntax C/C++ | #include <VFstd.h>
float VF_Euclid( fVector X, ui size ); |
C++ VecObj | #include <OptiVec.h>
T vector<T>::Euclid(); |
Pascal/Delphi | uses VFstd;
function VF_Euclid( X:fVector; size:UIntSize ): Single; |
|
CUDA function C/C++ | #include <cudaVFstd.h>
int cudaVF_Euclid( float *h_RetVal, fVector d_X, ui size );
int cusdVF_Euclid( float *d_RetVal, fVector d_X, ui size );
float VFcu_Euclid( fVector h_X, ui size );
|
CUDA function Pascal/Delphi | uses VFstd;
function cudaVF_Euclid( var h_RetVal:Single; d_X:fVector; size:UIntSize ): IntBool;
function cusdVF_Euclid( d_RetVal:PSingle; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_Euclid( h_X:fVector; size:UIntSize ): Single;
|
|
Description | norm = sqrt( sum( Xi2 ) )
The Euclidean norm of a vector is defined as the square-root of the scalar product of the vector with itself. |
|
Error handling | none (but beware of a possible overflow!) |
|
Return value | The Euclidean norm is returned |
|
|