FunctionNorm (square of the absolute value) of complex numbers
Syntax C/C++#include <VPFstd.h>
void VF_PtoNorm( fVector Norm, pfVector X, ui size );
C++ VecObj#include <OptiVec.h>
void vector<T>::PtoNorm( const vector<polar<T>>& X );
Pascal/Delphiuses VPFstd;
procedure VF_PtoNorm( Norm:fVector; X:pfVector; size:UIntSize );
CUDA function C/C++#include <cudaVPFstd.h>
int cudaVF_PtoNorm( fVector d_Norm, pfVector d_X, ui size );
void VFcu_PtoNorm( fVector h_Norm, pfVector h_X, ui size );
CUDA function Pascal/Delphiuses VPFstd;
function cudaVF_PtoNorm( d_Norm:fVector; d_X:pfVector; size:UIntSize ): IntBool;
procedure VF_PtoNorm( h_Norm:fVector; h_X:pfVector; size:UIntSize );
DescriptionNormi = Mag2(Xi)
This definition of the Norm of a complex number is the same as in C++, but it is not consistent with the usual definition in mathematics, where the term "norm" is used as a synomym for "absolute value" or "magnitude". As defined here, the Norm is the square of the absolute value. The absolute value itself is available by the function VPF_abs.
Error handlingnone
Return valuenone
See alsoVF_PtoReIm,   VPF_abs

VectorLib Table of Contents  OptiVec home