FunctionFind the largest element of a vector.
Syntax C/C++#include <VFstd.h>
float VF_max( fVector X, ui size );
C++ VecObj#include <OptiVec.h>
T vector<T>::_max();
Pascal/Delphiuses VFstd;
function VF_max( X:fVector; size:UIntSize ): Single;
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_max( float *h_RetVal, fVector d_X, ui size );
int cusdVF_max( float *d_RetVal, fVector d_X, ui size );
float VFcu_max( fVector h_X, ui size );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_max( var h_RetVal:Single; d_X:fVector; size:UIntSize ): IntBool;
function cusdVF_max( d_RetVal:PSingle; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_max( h_X:fVector; size:UIntSize ): Single;
DescriptionThe vector X is searched for its largest element, whose value is returned. In order to avoid confusion with the macro "max" in C/C++, the VecObj version of this function is written with a leading underbar as "_max".
Error handlingnone
Return valuemaximum value encountered.
See alsoVF_min,   VF_minmax,   VF_min_max_mean_stddev,   VF_absmax,   VF_maxexp,   VF_runmax,   VF_maxind

VectorLib Table of Contents  OptiVec home