| VF_absmax | VD_absmax | VE_absmax |
| VCF_absmax | VCD_absmax | VCE_absmax |
| VPF_absmax | VPD_absmax | VPE_absmax |
|
| Function | Largest 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/Delphi | uses 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_) |
|
| Description | The 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. |
|
|
| Return value | maximum absolute value encountered. |
|
|