FunctionSinc function
Syntax C/C++#include <VFmath.h>
int VF_sinc( fVector Y, fVector X, ui size );
int VFx_sinc( fVector Y, fVector X, ui size, float A, float B, float C );
C++ VecObj#include <OptiVec.h>
int vector<T>::sinc( const vector<T>& X );
int vector<T>::x_sinc( const vector<T>& X, const T& A, const T& B, const T& C );
Pascal/Delphiuses VFmath;
function VF_sinc( Y, X:fVector; size:UIntSize ): IntBool;
function VFx_sinc( Y, X:fVector; size:UIntSize; A, B, C:Single ): IntBool;
CUDA function C/C++#include <cudaVFmath.h>
int cudaVF_sinc( fVector d_Y, fVector d_X, ui size );
int cudaVFx_sinc( fVector d_Y, fVector d_X, ui size, float A, float B, float C );
int cusdVFx_sinc( fVector d_Y, fVector d_X, ui size, float *d_A, float *d_B, float *d_C );
int VFcu_sinc( fVector h_Y, fVector h_X, ui size );
int VFxcu_sinc( fVector h_Y, fVector h_X, ui size, float A, float B, float C );
CUDA function Pascal/Delphiuses VFmath;
function cudaVF_sinc( d_Y, d_X:fVector; size:UIntSize ): IntBool;
function cudaVFx_sinc( d_Y, d_X:fVector; size:UIntSize; A, B, C:Single ): IntBool;
function cusdVFx_sinc( d_Y, d_X:fVector; size:UIntSize; d_A, d_B, d_C:PSingle ): IntBool;
function VFcu_sinc( h_Y, h_X:fVector; size:UIntSize ): IntBool;
function VFxcu_sinc( h_Y, h_X:fVector; size:UIntSize; A, B, C:Single ): IntBool;
Descriptionnormal versions: Yi = sinc( Xi ) = sin( Xi ) / Xi
expanded versions: Yi = C * sinc( A*Xi+B )
The sinc function for an argument of 0.0 is defined as 1.0. The sinc function is the Fourier transform of a square pulse and is used, for example, to describe the diffraction pattern of a slit.
Error handlingThese functions should be error-proof.
Return valuealways FALSE (0).
See alsoVF_sin,   VF_sinrpi,   sin

VectorLib Table of Contents  OptiVec home