VF_scale10 | VD_scale10 | VE_scale10 |
|
Function | Scaling by an integer power of 10. |
|
Syntax C/C++ | #include <VFmath.h>
int VF_scale10( fVector Y, fVector X, ui size, int Expo ); |
C++ VecObj | #include <OptiVec.h>
int vector<T>::scale10( const vector<T>& X, int Expo ); |
Pascal/Delphi | uses VFmath;
function VF_scale10( Y, X:fVector; size:UIntSize; Expo:Integer ): IntBool; |
|
CUDA function C/C++ | #include <cudaVFmath.h>
int cudaVF_scale10( fVector d_Y, fVector d_X, ui size, int Expo );
int VFcu_scale10( fVector h_Y, fVector h_X, ui size, int Expo );
|
CUDA function Pascal/Delphi | uses VFmath;
function cudaVF_scale10( d_Y, d_X:fVector; size:UIntSize; Expo:Integer ): IntBool;
function VFcu_scale10( h_Y, h_X:fVector; size:UIntSize; Expo:Integer ): IntBool;
|
|
Description | Yi = Xi * (10 Expo)
Note that higher powers of ten are not representable as exact numbers, which may lead to the introduction of round-off error by the scaling. If this is a problem, VF_scale2 should be used instead. |
|
Error handling | OVERFLOW errors lead to a default result of ±HUGE_VAL. |
|
Return value | FALSE (0), if no error occurred, otherwise TRUE (non-zero) |
|
|