V_FtoD | V_FtoE | V_CFtoCD | V_CFtoCE |
V_DtoF | V_DtoE | V_CDtoCF | V_CDtoCE |
V_EtoF | V_EtoD | V_CEtoCF | V_CEtoCD |
|
Function | Data 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/Delphi | uses 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/Delphi | uses VDstd;
function cudaV_FtoD( d_Y:dVector; d_X:fVector; size:UIntSize ): IntBool;
procedure Vcu_FtoD( h_Y:dVector; h_X:fVector; size:UIntSize );
|
|
Description | Each element of X is converted from the data type specified for X to the data type specified for Y and stored in Y. |
|
Error handling | OVERFLOW 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. |
|
|
|