VF_absmaxVD_absmaxVE_absmax
VCF_absmaxVCD_absmaxVCE_absmax
VPF_absmaxVPD_absmaxVPE_absmax
FunctionLargest absolute value within one vector
Syntax C/C++#include <VFstd.h>
float VF_absmax( fVector X, ui size );

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

    (similarly VD_,   VE_)
function VCF_absmax( X:cfVector; size:UIntSize ): Single;
    (similarly VCD_,   VCE_,   VPF_,   VPD_,   VPE_)
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_absmax( float *h_RetVal, fVector d_X, ui size );
int cusdVF_absmax( float *d_RetVal, fVector d_X, ui size );
float VFcu_absmax( fVector h_X, ui size );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_absmax( var h_RetVal:Single; d_X:fVector; size:UIntSize ): IntBool;
function cusdVF_absmax( d_RetVal:PSingle; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_absmax( 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 magnitude is returned. If you need the complex number itself rather than only its magnitude, use VCF_cabsmax. In order to find the greatest real and imaginary parts of cartesian complex vectors separately, call VCF_absmaxReIm.
Error handlingnone
Return valuemaximum absolute value encountered.
See alsoVF_max,   VF_absmin,   VF_absminmax,   VF_maxexp,   VF_runmax,   VF_absmaxind,   VCF_absmaxReIm,   VCF_cabsmax,   VCF_sabsmax

VectorLib Table of Contents  OptiVec home