VF_absmaxindVD_absmaxindVE_absmaxind
VCF_absmaxindVCD_absmaxindVCE_absmaxind
VPF_absmaxindVPD_absmaxindVPE_absmaxind
FunctionLargest absolute value and its index
Syntax C/C++#include <VFstd.h>
float VF_absmaxind( ui *Ind, fVector X, ui size );

    (similarly VD_,   VE_)
float VCF_absmaxind( ui *Ind, cfVector X, ui size );
    (similarly VCD_,   VCE_,   VPF_,   VPD_,   VPE_)
C++ VecObj#include <OptiVec.h>
T vector<T>::absmaxind( ui *Ind );
T vector<complex<T>>::absmaxind( ui *Ind );
Pascal/Delphiuses VFstd;
function VF_absmaxind( var Ind:UIntSize; X:fVector; size:UIntSize ): Single;

    (similarly VD_,   VE_)
function VCF_absmaxind( var Ind:UIntSize; X:cfVector; size:UIntSize ): Single;
    (similarly VCD_,   VCE_,   VPF_,   VPD_,   VPE_)
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_absmaxind( float *h_RetVal, ui *h_Ind, fVector d_X, ui size );
int cusdVF_absmaxind( float *d_RetVal, ui *h_Ind, fVector d_X, ui size );
float VFcu_absmaxind( ui *h_Ind, fVector h_X, ui size );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_absmaxind( var h_RetVal:Single; var h_Ind:UIntSize; d_X:fVector; size:UIntSize ): IntBool;
function cusdVF_absmaxind( d_RetVal:PSingle; var h_Ind:UIntSize; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_absmaxind( var h_Ind:UIntSize; h_X:fVector; size:UIntSize ): Single;
DescriptionThe absolute values of all elements of a vector are compared and the largest returned. For complex numbers, the magnitudes of the elements are compared and the largest returned. The index of this maximum is stored at the address given by Ind. In case of more than one element with the same maximum value, the lowest index is chosen.
Error handlingnone
Return valuemaximum absolute value encountered.
See alsoVF_maxind,   VF_absmax,   VF_runmax,   VF_maxind,   VCF_absmaxReIm

VectorLib Table of Contents  OptiVec home