|
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/Delphi | uses 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/Delphi | uses 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 );
|
|
Description | Yi = 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. |
|
|
|
|