FunctionFind the smallest (or most negative) real and imaginary parts occurring in a vector.
Syntax C/C++#include <VCFstd.h>
fComplex VCF_minReIm( cfVector X, ui size );
C++ VecObj#include <OptiVec.h>
complex<T> vector<complex<T>>::minReIm();
Pascal/Delphiuses VCFstd;
function VCF_minReIm( X:cfVector; size:UIntSize ):fComplex;

Alternative syntax (obsolete, but still supported):
procedure VCF_minReIm( var RetVal:fComplex; X:cfVector; size:UIntSize );

    (similarly VCD_,   VCE_)
CUDA function C/C++#include <cudaVCFstd.h>
int cudaVCF_minReIm( fComplex *h_RetVal, cfVector d_X, ui size );
int cusdVCF_minReIm( fComplex *d_RetVal, cfVector d_X, ui size );
fComplex VCFcu_minReIm( cfVector h_X, ui size );
CUDA function Pascal/Delphiuses VCFstd;
function cudaVCF_minReIm( var h_RetVal:fComplex; d_X:cfVector; size:UIntSize ): IntBool;
function cusdVCF_minReIm( d_RetVal:PfComplex; d_X:cfVector; size:UIntSize ): IntBool;
function VCFcu_minReIm( h_X:cfVector; size:UIntSize ):fComplex;
DescriptionThe vector X is separately searched for its smallest real and imaginary parts. These are packed together and either returned as an fComplex (in C/C++) or stored in Min (in Pascal/Delphi):
Min.Re: smallest real part encountered,
Min.Im: smallest imaginary part encountered.
Error handlingnone
Return valueC/C++:
struct or class instance of type fComplex (dComplex, eComplex, resp.), in which the minima of the real and imaginary parts of X are packed together.
since Pascal does not allow complex return values, the result is stored in the variable Min.
See alsoVCF_maxReIm,   VCF_absminReIm,   VCF_absmin,   VCF_absminind

VectorLib Table of Contents  OptiVec home