VFx_cubic | VDx_cubic | VEx_cubic |
VFu_cubic | VDu_cubic | VEu_cubic |
VFux_cubic | VDux_cubic | VEux_cubic |
VCF_cubic | VCD_cubic | VCE_cubic |
VCFx_cubic | VCDx_cubic | VCEx_cubic |
VCFu_cubic | VCDu_cubic | VCEu_cubic |
VCFux_cubic | VCDux_cubic | VCEux_cubic |
VPF_cubic | VPD_cubic | VPE_cubic |
VPFu_cubic | VPDu_cubic | VPEu_cubic |
|
Function | Cubic (third power) |
|
Syntax C/C++ | #include <VFmath.h>
int VF_cubic( fVector Y, fVector X, ui size );
int VFx_cubic( fVector Y, fVector X, ui size, float A, float B );
int VFu_cubic( fVector Y, fVector X, ui size );
int VFux_cubic( fVector Y, fVector X, ui size, float A, float B ); |
C++ VecObj | #include <OptiVec.h>
int vector<T>::cubic( const vector<T>& X );
int vector<T>::x_cubic( const vector<T>& X, const T& A, const T& B );
int vector<T>::u_cubic( const vector<T>& X );
int vector<T>::ux_cubic( const vector<T>& X, const T& A, const T& B ); |
Pascal/Delphi | uses VFmath;
function VF_cubic( Y, X:fVector; size:UIntSize ): IntBool;
function VFx_cubic( Y, X:fVector; size:UIntSize; A, B:Single ): IntBool;
function VFu_cubic( Y, X:fVector; size:UIntSize ): IntBool;
function VFux_cubic( Y, X:fVector; size:UIntSize; A, B:Single ): IntBool; |
|
CUDA function C/C++ | #include <cudaVFmath.h>
int cudaVF_cubic( fVector d_Y, fVector d_X, ui size );
int cudaVFx_cubic( fVector d_Y, fVector d_X, ui size, float A, float B );
int cusdVFx_cubic( fVector d_Y, fVector d_X, ui size, float *d_A, float *d_B );
int VFucu_cubic( fVector h_Y, fVector h_X, ui size );
int VFuxcu_cubic( fVector h_Y, fVector h_X, ui size, float A, float B );
int cudaVFu_cubic( fVector d_Y, fVector d_X, ui size );
int cudaVFux_cubic( fVector d_Y, fVector d_X, ui size, float A, float B );
int cusdVFux_cubic( fVector d_Y, fVector d_X, ui size, float *d_A, float *d_B );
int VFucu_cubic( fVector h_Y, fVector h_X, ui size );
int VFuxcu_cubic( fVector h_Y, fVector h_X, ui size, float A, float B );
|
CUDA function Pascal/Delphi | uses VFmath;
function cudaVF_cubic( d_Y, d_X:fVector; size:UIntSize ): IntBool;
function cudaVFx_cubic( d_Y, d_X:fVector; size:UIntSize; A, B:Single ): IntBool;
function cusdVFx_cubic( d_Y, d_X:fVector; size:UIntSize; d_A, d_B:PSingle ): IntBool;
function VFcu_cubic( h_Y, h_X:fVector; size:UIntSize ): IntBool;
function VFxcu_cubic( h_Y, h_X:fVector; size:UIntSize; A, B:Single ): IntBool;
function cudaVFu_cubic( d_Y, d_X:fVector; size:UIntSize ): IntBool;
function cudaVFux_cubic( d_Y, d_X:fVector; size:UIntSize; A, B:Single ): IntBool;
function cusdVFux_cubic( d_Y, d_X:fVector; size:UIntSize; d_A, d_B:PSingle ): IntBool;
function VFucu_cubic( h_Y, h_X:fVector; size:UIntSize ): IntBool;
function VFuxcu_cubic( h_Y, h_X:fVector; size:UIntSize; A, B:Single ): IntBool;
|
|
Description | simple versions: Yi = Xi3
expanded versions: Yi = (A*Xi+B)3
"unprotected" versions (prefix VFu_, VFux_, etc.):
These functions do not perform any error handling, which makes them much faster than the standard versions. The extended-precision complex (VCEu_ and VCEux_) versions do not take some of the security measures present in the standard version and might fail for results very near the overflow limit; results near the underflow limit might be rendered as 0. |
|
Error handling | OVERFLOW errors lead to a default result of ±HUGE_VAL. |
|
Return value | FALSE (0), if no error occurred, otherwise TRUE (non-zero) |
|
|