VF_ipow2VD_ipow2VE_ipow2
FunctionInteger powers of 2
Syntax C/C++#include <VFmath.h>
int VF_ipow2( fVector Y, iVector X, ui size );
C++ VecObj#include <OptiVec.h>
int vector<T>::ipow2( const vector<T>& X );
Pascal/Delphiuses VFmath; function VF_ipow2( Y:fVector; X:iVector; size:UIntSize ):
CUDA function C/C++#include <cudaVFmath.h>
int cudaVF_ipow2( fVector d_Y, iVector d_X, ui size );
int VFcu_ipow2( fVector h_Y, iVector h_X, ui size );
CUDA function Pascal/Delphiuses VFmath;
function cudaVF_ipow2( d_Y:fVector; d_X:iVector; size:UIntSize ): IntBool;
function VFcu_ipow2( h_Y:fVector; h_X:iVector; size:UIntSize ): IntBool;
DescriptionYi = 2Xi
Error handlingOVERFLOW errors lead to a default result of HUGE_VAL.
Return valueFALSE (0), if no error occurred, otherwise TRUE (non-zero)
See alsoVF_pow2,   VF_scale2,   VF_log2,   VF_pow,   VF_exp,   pow

VectorLib Table of Contents  OptiVec home