VF_maxexp | VD_maxexp | VE_maxexp |
|
Function | Largest exponent within one vector |
|
Syntax C/C++ | #include <VFstd.h>
int VF_maxexp( fVector X, ui size );
(similarly VD_, VE_)
|
C++ VecObj | #include <OptiVec.h>
int vector<T>::maxexp(); |
Pascal/Delphi | uses VFstd;
function VF_maxexp( X:fVector; size:UIntSize ): Integer;
(similarly VD_, VE_)
|
|
CUDA function C/C++ | #include <cudaVFstd.h>
int cudaVF_maxexp( int *h_RetVal, fVector d_X, ui size );
int cusdVF_maxexp( int *d_RetVal, fVector d_X, ui size );
int VFcu_maxexp( fVector h_X, ui size );
|
CUDA function Pascal/Delphi | uses VFstd;
function cudaVF_maxexp( var h_RetVal:Integer; d_X:fVector; size:UIntSize ): IntBool;
function cusdVF_maxexp( d_RetVal:PInteger; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_maxexp( h_X:fVector; size:UIntSize ): Integer;
|
|
Description | Considering that each number can be represented as a product, mantissa * 2exponent, where 1.0 ≤ mantissa < 2.0, the largest exponent occurring in a vector is returned. If the vector consisted of nothing but zeros, the exponent is returned as -231 (32-bit models) or -215 (16-bit models). |
|
|
Return value | maximum exponent encountered. |
|
|