VF_modCVD_modCVE_modC
VI_modCVBI_modCVSI_modCVLI_modCVQI_modC 
VU_modCVUB_modCVUS_modCVUL_modCVUQ_modCVUI_modC
FunctionModulus, i.e. the remainder of a division by a constant
Syntax C/C++#include <VFmath.h>
void VF_modC( fVector Y, fVector X, ui size, float C );
C++ VecObj#include <OptiVec.h>
void vector<T>::modC( const vector<T>& X, const T& C );
Pascal/Delphiuses VFmath;
procedure VF_modC( Y, X:fVector; size:UIntSize; C:Single );
CUDA function C/C++#include <cudaVFmath.h>
#include <cudaVDmath.h>
int cudaVF_modC( fVector d_Y, fVector d_X, ui size, float C );
int cusdVF_modC( fVector d_Y, fVector d_X, ui size, float *d_C );
void VFcu_modC( fVector d_Y, fVector d_X, ui size, float C );
CUDA function Pascal/Delphiuses VFmath, VDmath;
function cudaVF_modC( d_Y, d_X:fVector; size:UIntSize; C:Single ): IntBool;
function cusdVF_modC( d_Y, d_X:fVector; size:UIntSize; d_C:PSingle ): IntBool;
procedure VF_modC( Y, X:fVector; size:UIntSize; C:Single );
DescriptionYi = Xi mod C
Floating-point versions: a constant C = 0.0 leads to all Yi being 0.0, independently of the Xi values (as in the ANSI C math function fmod ).
Integer versions: a constant C = 0 leads to a ZERODIVIDE error (as in the intrinsic "%" operation of ANSI C).
Error handlingnone
Return valuenone (also the floating-point versions are treated as basic arithmetic rather than mathematical functions, despite their relation to the math function fmod).
See alsoVF_modV,   VF_addC,   VF_mulC,   VF_divC,   VF_visC,   VF_redC

VectorLib Table of Contents  OptiVec home