VF_rcubic | VD_rcubic | VE_rcubic |
VFx_rcubic | VDx_rcubic | VEx_rcubic |
VFu_rcubic | VDu_rcubic | VEu_rcubic |
VFux_rcubic | VDux_rcubic | VEux_rcubic |
|
Function | Reciprocal Cubic (reciprocal of third power) |
|
Syntax C/C++ | #include <VFmath.h>
int VF_rcubic( fVector Y, fVector X, ui size );
int VFx_rcubic( fVector Y, fVector X, ui size, float A, float B );
int VFu_rcubic( fVector Y, fVector X, ui size );
int VFux_rcubic( fVector Y, fVector X, ui size, float A, float B ); |
C++ VecObj | #include <OptiVec.h>
int vector<T>::rcubic( const vector<T>& X );
int vector<T>::x_rcubic( const vector<T>& X, const T& A, const T& B );
int vector<T>::u_rcubic( const vector<T>& X );
int vector<T>::ux_rcubic( const vector<T>& X, const T& A, const T& B ); |
Pascal/Delphi | uses VFmath;
function VF_rcubic( Y, X:fVector; size:UIntSize ): IntBool;
function VFx_rcubic( Y, X:fVector; size:UIntSize; A, B:Single ): IntBool;
function VFu_rcubic( Y, X:fVector; size:UIntSize ): IntBool;
function VFux_rcubic( Y, X:fVector; size:UIntSize; A, B:Single ): IntBool; |
|
CUDA function C/C++ | #include <cudaVFmath.h>
int cudaVF_rcubic( fVector d_Y, fVector d_X, ui size );
int cudaVFx_rcubic( fVector d_Y, fVector d_X, ui size, float A, float B );
int cusdVFx_rcubic( fVector d_Y, fVector d_X, ui size, float *d_A, float *d_B );
int VFucu_rcubic( fVector h_Y, fVector h_X, ui size );
int VFuxcu_rcubic( fVector h_Y, fVector h_X, ui size, float A, float B );
int cudaVFu_rcubic( fVector d_Y, fVector d_X, ui size );
int cudaVFux_rcubic( fVector d_Y, fVector d_X, ui size, float A, float B );
int cusdVFux_rcubic( fVector d_Y, fVector d_X, ui size, float *d_A, float *d_B );
int VFucu_rcubic( fVector h_Y, fVector h_X, ui size );
int VFuxcu_rcubic( fVector h_Y, fVector h_X, ui size, float A, float B );
|
CUDA function Pascal/Delphi | uses VFmath;
function cudaVF_rcubic( d_Y, d_X:fVector; size:UIntSize ): IntBool;
function cudaVFx_rcubic( d_Y, d_X:fVector; size:UIntSize; A, B:Single ): IntBool;
function cusdVFx_rcubic( d_Y, d_X:fVector; size:UIntSize; d_A, d_B:PSingle ): IntBool;
function VFcu_rcubic( h_Y, h_X:fVector; size:UIntSize ): IntBool;
function VFxcu_rcubic( h_Y, h_X:fVector; size:UIntSize; A, B:Single ): IntBool;
function cudaVFu_rcubic( d_Y, d_X:fVector; size:UIntSize ): IntBool;
function cudaVFux_rcubic( d_Y, d_X:fVector; size:UIntSize; A, B:Single ): IntBool;
function cusdVFux_rcubic( d_Y, d_X:fVector; size:UIntSize; d_A, d_B:PSingle ): IntBool;
function VFucu_rcubic( h_Y, h_X:fVector; size:UIntSize ): IntBool;
function VFuxcu_rcubic( h_Y, h_X:fVector; size:UIntSize; A, B:Single ): IntBool;
|
|
Description | simple versions: Yi = 1 / Xi3
expanded versions: Yi = 1 / (A*Xi+B)3
"unprotected" versions (prefix VFu_, VFux_, etc.):
These functions do not perform any error handling, which makes them much faster, but somewhat 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) |
|
|