FunctionCalculates 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/Delphiuses 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/Delphiuses 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;
Descriptionnorm = 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 handlingnone (but beware of a possible overflow!)
Return valueThe Euclidean norm is returned
See alsoVF_ssq,   VF_rms,   VF_scalprod,   VF_xprod

VectorLib Table of Contents  OptiVec home