BLAS/SRC/icamax.f(3)
π NAME π
BLAS/SRC/icamax.f β bestie, this is the file, and it's giving iconic BLAS realness. π
β¨ SYNOPSIS β¨
Functions/Subroutines
integer function icamax (n, cx, incx)
ICAMAX β that's the whole vibe, that's the name, periodt. π«Ά
π FUNCTION/SUBROUTINE DOCUMENTATION π
integer function icamax (integer n, complex, dimension(*) cx, integer incx)
ICAMAX β¨
πΈ PURPOSE πΈ
okay so listen up, this is literally the whole point:
ICAMAX finds the index of the first element having maximum |Re(.)| + |Im(.)|
like... it goes through your complex vector, adds the absolute value of the real part to the absolute value of the imaginary part, and tells you which one ate the most. and if there's a tie? first one wins, no debate, she doesn't switch up. π
π¦ PARAMETERS π¦
Nβ INTEGER, the number of elements in your input vector(s). that's it, that's the count. π’CXβ COMPLEX array, dimension( 1 + ( N - 1 )*abs( INCX ) ). yes the dimension expression is that specific, we do not round it down, we do not be cute about it. πINCXβ INTEGER, the storage spacing between elements ofCX. so like, how far apart your elements are chilling from each other. πΆβοΈπΆβοΈ
π AUTHOR π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
shoutout to the legends, fr fr π
π₯ FURTHER DETAILS π₯
the lore, bestie, the receipts:
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(*)
so: originally written by jack dongarra in linpack on 3/11/78, then modified in 3/93 so it just returns if incx .le. 0, and modified again on 12/3/93 when the array(1) declarations got changed to array(*). glow-up after glow-up after glow-up. β¨
Definition at line 70 of file icamax.f.
π§ AUTHOR (the other one, iykyk) π§
Generated automatically by Doxygen for LAPACK from the source code. no cap, the robots did this part. π€π
π SIGN-OFF π
Version 3.12.0 β Tue Nov 28 2023 12:08:41 β and that's the whole BLAS/SRC/icamax.f(3) page, bestie. go find your max index, slay responsibly, and remember: first element with the biggest |Re(.)| + |Im(.)| wins. mwah. π
πΈπ¦β
π¦ where this page comes from
- centos-stream 10: blas 3.12.0-7.el10 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 43: blas 3.12.0-10.fc43 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- fedora 44: blas 3.12.0-11.fc44 Β· BSD-3-Clause-Open-MPI
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms