VF_rsquare | VD_rsquare | VE_rsquare |
VFx_rsquare | VDx_rsquare | VEx_rsquare |
VFu_rsquare | VDu_rsquare | VEu_rsquare |
VFux_rsquare | VDux_rsquare | VEux_rsquare |
|
Function | Reciprocal square |
|
Syntax C/C++ | #include <VFmath.h>
int VF_rsquare( fVector Y, fVector X, ui size );
int VFx_rsquare( fVector Y, fVector X, ui size, float A, float B );
int VFu_rsquare( fVector Y, fVector X, ui size );
int VFux_rsquare( fVector Y, fVector X, ui size, float A, float B ); |
C++ VecObj | #include <OptiVec.h>
int vector<T>::rsquare( const vector<T>& X );
int vector<T>::x_rsquare( const vector<T>& X, const T& A, const T& B );
int vector<T>::u_rsquare( const vector<T>& X );
int vector<T>::ux_rsquare( const vector<T>& X, const T& A, const T& B ); |
Pascal/Delphi | uses VFmath;
function VF_rsquare( Y, X:fVector; size:UIntSize ): IntBool;
function VFx_rsquare( Y, X:fVector; size:UIntSize; A, B:Single ): IntBool;
function VFu_rsquare( Y, X:fVector; size:UIntSize ): IntBool;
function VFux_rsquare( Y, X:fVector; size:UIntSize; A, B:Single ): IntBool; |
|
CUDA function C/C++ | #include <cudaVFmath.h>
int cudaVF_rsquare( fVector d_Y, fVector d_X, ui size );
int cudaVFx_rsquare( fVector d_Y, fVector d_X, ui size, float A, float B );
int cusdVFx_rsquare( fVector d_Y, fVector d_X, ui size, float *d_A, float *d_B );
int VFucu_rsquare( fVector h_Y, fVector h_X, ui size );
int VFuxcu_rsquare( fVector h_Y, fVector h_X, ui size, float A, float B );
int cudaVFu_rsquare( fVector d_Y, fVector d_X, ui size );
int cudaVFux_rsquare( fVector d_Y, fVector d_X, ui size, float A, float B );
int cusdVFux_rsquare( fVector d_Y, fVector d_X, ui size, float *d_A, float *d_B );
int VFucu_rsquare( fVector h_Y, fVector h_X, ui size );
int VFuxcu_rsquare( fVector h_Y, fVector h_X, ui size, float A, float B );
|
CUDA function Pascal/Delphi | uses VFmath;
function cudaVF_rsquare( d_Y, d_X:fVector; size:UIntSize ): IntBool;
function cudaVFx_rsquare( d_Y, d_X:fVector; size:UIntSize; A, B:Single ): IntBool;
function cusdVFx_rsquare( d_Y, d_X:fVector; size:UIntSize; d_A, d_B:PSingle ): IntBool;
function VFcu_rsquare( h_Y, h_X:fVector; size:UIntSize ): IntBool;
function VFxcu_rsquare( h_Y, h_X:fVector; size:UIntSize; A, B:Single ): IntBool;
function cudaVFu_rsquare( d_Y, d_X:fVector; size:UIntSize ): IntBool;
function cudaVFux_rsquare( d_Y, d_X:fVector; size:UIntSize; A, B:Single ): IntBool;
function cusdVFux_rsquare( d_Y, d_X:fVector; size:UIntSize; d_A, d_B:PSingle ): IntBool;
function VFucu_rsquare( h_Y, h_X:fVector; size:UIntSize ): IntBool;
function VFuxcu_rsquare( h_Y, h_X:fVector; size:UIntSize; A, B:Single ): IntBool;
|
|
Description | simple versions: Yi = 1 / Xi2
expanded versions: Yi = 1 / (A*Xi+B)2
The "unprotected" versions (prefix VFu_, VFux_, etc.) do not perform any error handling, which makes them much faster, but riskier than the standard versions. |
|
Error handling | SING and OVERFLOW errors lead to a default result of HUGE_VAL. |
|
Return value | FALSE (0), if no error occurred, otherwise TRUE (non-zero) |
|
|