iamax(3)
π iamax(3) β the "which element goes hardest" page (Library Functions Manual)
okay bestie, so this is a whole family of little Fortran functions β icamax, idamax, isamax, and izamax β that all do the exact same iconic thing: they find the index of the first element in a vector with the biggest magnitude. Depending on your data type (complex, double, real, or complex*16), one of the four is your girl. no cap, that's the whole vibe. π
β¨ NAME β¨
iamax - iamax: argmax_i | real( x_i ) | + | imag( x_i ) |
Basically: the index of the element whose |Re(.)| + |Im(.)| is maxed out. periodt. π«Ά
πΈ SYNOPSIS πΈ
π Functions π
integer function icamax (n, cx, incx)
ICAMAX
integer function idamax (n, dx, incx)
IDAMAX
integer function isamax (n, sx, incx)
ISAMAX
integer function izamax (n, zx, incx)
IZAMAX
four sisters, four data types, one mission. slay. β¨
π¦ Detailed Description π¦
highkey there isn't a big paragraph here β it just points you straight down to the Function Documentation. so that's where we're going, bestie. β
π Function Documentation π
π₯ integer function icamax (integer n, complex, dimension(*) cx, integer incx) π₯
ICAMAX
Purpose:
ICAMAXfinds the index of the first element having maximum|Re(.)| + |Im(.)|
Parameters:
NβNisINTEGER. number of elements in input vector(s).CXβCXisCOMPLEXarray, dimension( 1 + ( N - 1 )*abs( INCX ) ).INCXβINCXisINTEGER. storage spacing between elements ofCX.
Author: Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver, NAG Ltd.
Further Details:
jack dongarra, linpack, 3/11/78.
modified 3/93 to return if incx .le. 0.
modified 12/3/93, array(1) declarations changed to array(*)
Definition at line 70 of file icamax.f.
π integer function idamax (integer n, double precision, dimension(*) dx, integer incx) π
IDAMAX
Purpose:
IDAMAX finds the index of the first element having maximum absolute value.
Parameters:
NβNisINTEGER. number of elements in input vector(s).DXβDXisDOUBLE PRECISIONarray, dimension( 1 + ( N - 1 )*abs( INCX ) ).INCXβINCXisINTEGER. storage spacing between elements ofDX.
Author: Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver, NAG Ltd.
Further Details:
jack dongarra, linpack, 3/11/78.
modified 3/93 to return if incx .le. 0.
modified 12/3/93, array(1) declarations changed to array(*)
Definition at line 70 of file idamax.f.
π integer function isamax (integer n, real, dimension(*) sx, integer incx) π
ISAMAX
Purpose:
ISAMAX finds the index of the first element having maximum absolute value.
Parameters:
NβNisINTEGER. number of elements in input vector(s).SXβSXisREALarray, dimension( 1 + ( N - 1 )*abs( INCX ) ).INCXβINCXisINTEGER. storage spacing between elements ofSX.
Author: Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver, NAG Ltd.
Further Details:
jack dongarra, linpack, 3/11/78.
modified 3/93 to return if incx .le. 0.
modified 12/3/93, array(1) declarations changed to array(*)
Definition at line 70 of file isamax.f.
π§ integer function izamax (integer n, complex*16, dimension(*) zx, integer incx) π§
IZAMAX
Purpose:
IZAMAXfinds the index of the first element having maximum|Re(.)| + |Im(.)|
Parameters:
NβNisINTEGER. number of elements in input vector(s).ZXβZXisCOMPLEX*16array, dimension( 1 + ( N - 1 )*abs( INCX ) ).INCXβINCXisINTEGER. storage spacing between elements ofZX.
Author: Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver, NAG Ltd.
Further Details:
jack dongarra, 1/15/85.
modified 3/93 to return if incx .le. 0.
modified 12/3/93, array(1) declarations changed to array(*)
Definition at line 70 of file izamax.f.
π heads up bestie: foricamaxandizamaxthe thing being maximized is|Re(.)| + |Im(.)|β not the plain absolute value. different math, don't mix them up. fr fr.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
and that's the whole page, bestie β go find your max index and live your main character life. π
signed, sealed, delivered by LAPACK, Version 3.12.0 π¦β¨
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms