FunctionData type interconversions.
Syntax C/C++#include <VDstd.h>
    (always include the <V..std.h> file of the destination data-type!)
void V_FtoD( dVector Y, fVector X, ui size );
    (similarly all other functions of this family)
C++ VecObj#include <OptiVec.h>
void vector<double>::FtoD( const vector<float>& X );
Pascal/Delphiuses VDstd;
    (always include the unit of the destination data-type!)
procedure V_FtoD( Y:dVector; X:fVector; size:UIntSize );
    (similarly all other functions of this family)
CUDA function C/C++#include <cudaVDstd.h>
int cudaV_FtoD( dVector d_Y, fVector d_X, ui size );
void Vcu_FtoD( dVector h_Y, fVector h_X, ui size );
CUDA function Pascal/Delphiuses VDstd;
function cudaV_FtoD( d_Y:dVector; d_X:fVector; size:UIntSize ): IntBool;
procedure Vcu_FtoD( h_Y:dVector; h_X:fVector; size:UIntSize );
DescriptionEach element of X is converted from the data type specified for X to the data type specified for Y and stored in Y.
Error handlingOVERFLOW errors in the course of the "down-conversions" (e.g., V_EtoF); are silently handled: the extreme value possible for the destination data type is stored in Y with the correct sign. _matherr is not called.
Return valuenone
See alsoV_ItoF,   V_roundtoI,   V_roundtoLI

VectorLib Table of Contents  OptiVec home