FunctionLorentzian lineshape function
Syntax C/C++#include <VFmath.h>
int VF_Lorentz( fVector Y, fVector X, ui size, float Wid, float Cent, float C );
C++ VecObj#include <OptiVec.h>
int vector<T>::Lorentz( const vector<T>& X, T Wid, const T& Cent, const T& C );
Pascal/Delphiuses VFmath;
function VF_Lorentz( Y, X:fVector; size:UIntSize; Wid, Cent, C:Single ): IntBool;
CUDA function C/C++#include <cudaVFmath.h>
int cudaVF_Lorentz( fVector d_Y, fVector d_X, ui size, float Wid, float Cent, float C );
int cusdVF_Lorentz( fVector d_Y, fVector d_X, ui size, float *d_Wid, float *d_Cent, float *d_C );
int VFcu_Lorentz( fVector h_Y, fVector h_X, ui size, float Wid, float Cent, float C );
CUDA function Pascal/Delphiuses VFmath;
function cudaVF_Lorentz( d_Y, d_X:fVector; size:UIntSize; Wid, Cent, C:Single ): IntBool;
function cusdVF_Lorentz( d_Y, d_X:fVector; size:UIntSize; d_Wid, d_Cent, d_C:PSingle ): IntBool;
function VFcu_Lorentz( h_Y, h_X:fVector; size:UIntSize; Wid, Cent  C:Single ): IntBool;
DescriptionYi = C * Wid2 / ( (Xi - Cent)2 + Wid2 )
Wid = width of the resonance line
Cent = centre of the line
C is a scaling factor; at the center of the line (Xi=Cent), the amplitude Yi equals C. This is even true for a width of zero.
Error handlingThis function should be error-proof.
Return valuealways FALSE (0)
See alsoVF_Gauss,   VF_sech2

VectorLib Table of Contents  OptiVec home