VF_redCVD_redCVE_redC
Function"Reduce" by a constant
Syntax C/C++#include <VFmath.h>
void VF_redC( fVector Y, fVector X, ui size, float C );
C++ VecObj#include <OptiVec.h>
void vector<T>::redC( const vector<T>& X, const T& C );
Pascal/Delphiuses VFmath;
procedure VF_redC( Y, X:fVector; size:UIntSize; C:Single );
CUDA function C/C++#include <cudaVFmath.h>
#include <cudaVDmath.h>
int cudaVF_redC( fVector d_Y, fVector d_X, ui size, float C );
int cusdVF_redC( fVector d_Y, fVector d_X, ui size, float *d_C );
void VFcu_redC( fVector d_Y, fVector d_X, ui size, float C );
CUDA function Pascal/Delphiuses VFmath, VDmath;
function cudaVF_redC( d_Y, d_X:fVector; size:UIntSize; C:Single ): IntBool;
function cusdVF_redC( d_Y, d_X:fVector; size:UIntSize; d_C:PSingle ): IntBool;
procedure VF_redC( Y, X:fVector; size:UIntSize; C:Single );
DescriptionYi = red( Xi, C ) = Xi * C / (Xi + C)
Expressions of this type are frequently used in physics; for example, the "reduced mass" of a two-body system is the product of both masses divided by their sum.
Error handlingnone
Return valuenone
See alsoVF_redV,   VF_addC,   VF_subC,   VF_divC,   VF_visC

VectorLib Table of Contents  OptiVec home