FunctionData type interconversions.
Syntax C/C++#include <MDstd.h>
    (always include the <M..std.h> file of the destination data-type!)
void M_FtoD( dMatrix MY, fMatrix MX, ui ht, ui len );
    (similarly all other functions of this family)
C++ MatObj#include <OptiVec.h>
void matrix<double>::FtoD( const matrix<float>& MX );
Pascal/Delphiuses MDstd;
    (always include the unit of the destination data-type!)
procedure M_FtoD( MY:dMatrix; MX:fMatrix; ht, len:UIntSize );
    (similarly all other functions of this family)
CUDA function C/C++#include <cudaMDstd.h>
int cudaM_FtoD( dMatrix d_MY, fMatrix d_MX, ui ht, ui len );
void Mcu_FtoD( dMatrix h_MY, fMatrix h_MX, ui ht, ui len );
CUDA function Pascal/Delphiuses MDstd;
function cudaM_FtoD( d_MY:dMatrix; d_MX:fMatrix; ht, len:UIntSize ): IntBool;
procedure Mcu_FtoD( h_MY:dMatrix; h_MX:fMatrix; ht, len:UIntSize );
DescriptionEach element of MX is converted from the data type specified for MX to the data type specified for MY and stored in MY.
Error handlingOVERFLOW errors may occur in the course of the "down-conversions" (e.g., M_EtoF); by default, the extreme value possible for the destination data type is stored in MY with the correct sign.
See alsochapter 4

MatrixLib Table of Contents  OptiVec home