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 of CX. 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. πŸ’…πŸŒΈπŸ¦‹β­