VF_flush0VD_flush0VE_flush0
VCF_flush0VCD_flush0VCE_flush0
FunctionSets vector elements with an absolute value less than a certain threshold to 0.
Syntax C/C++#include <VFmath.h>
void VF_flush0( fVector Y, fVector X, ui size, float AbsMin );
void VCF_flush0( fVector Y, fVector X, ui size, fComplex AbsMin );
C++ VecObj#include <OptiVec.h>
void vector<T>::flush0( const vector<T>& X, const T& AbsMin );
void vector<T>::flush0( const vector<T>& X, complex<T> AbsMin );
Pascal/Delphiuses VFmath;
procedure VF_flush0( Y, X:fVector; size:UIntSize; AbsMin:Single );
procedure VCF_flush0( Y, X:cfVector; size:UIntSize; AbsMin:fComplex );
CUDA function C/C++#include <cudaVFmath.h>
int cudaVF_flush0( fVector d_Y, fVector d_X, ui size, float AbsMin );
int cusdVF_flush0( fVector d_Y, fVector d_X, ui size, float *d_AbsMin );
void VFcu_flush0( fVector h_Y, fVector h_X, ui size, float AbsMin );
CUDA function Pascal/Delphiuses VFmath;
function cudaVF_flush0( d_Y, d_X:fVector; size:UIntSize; AbsMin:Single ): IntBool;
function cusdVF_flush0( d_Y, d_X:fVector; size:UIntSize; d_AbsMin:PSingle ): IntBool;
procedure VFcu_flush0( h_Y, h_X:fVector; size:UIntSize; AbsMin:Single );
DescriptionYi = Xi, if | Xi | >= AbsMin,
Yi = 0, otherwise
The complex versions treat the real and imaginary parts separately, using the real and imaginary parts of AbsMin to determine where to cut. If only the imaginary part is to be edited, set the real part of AbsMin to zero, e.g. (for C/C++):
VCF_flush0( Y, X, size, fcplx( 0, 1.e-6 ));
Error handlingnone
Return valuenone
See alsoVF_limit,   VF_flushInv,   VF_maxC

VectorLib Table of Contents  OptiVec home