| VF_absmaxind | VD_absmaxind | VE_absmaxind |
| VCF_absmaxind | VCD_absmaxind | VCE_absmaxind |
| VPF_absmaxind | VPD_absmaxind | VPE_absmaxind |
|
| Function | Largest 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/Delphi | uses 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_) |
|
| 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 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. |
|
|
| Return value | maximum absolute value encountered. |
|
|