BLAS/SRC/izamax.f(3)
π BLAS/SRC/izamax.f π
okay bestie, welcome to the LAPACK manual, section 3, and today's main character is BLAS/SRC/izamax.f β the little BLAS routine that finds the biggest vibe in a complex vector. no cap. π¦
β¨ SYNOPSIS β¨
Functions/Subroutines
integer function izamax (n, zx, incx)
IZAMAX π
πΈ Function/Subroutine Documentation πΈ
integer function izamax (integer n, complex*16, dimension(*) zx, integer
incx)
IZAMAX β¨
π― Purpose
IZAMAX finds the index of the first element having maximum |Re(.)| + |Im(.)| π
translation: it goes through your complex vector, adds the absolute value of each element's real part to the absolute value of its imaginary part, and tells you where the biggest of those sums lives. first one wins if there's a tie β no fight, no tiebreaker, the earliest index takes it. periodt. π
π§ Parameters
NβNisINTEGER, and it's literally just the number of elements in your input vector(s). that's it. that's the whole job. πZXβZXis aCOMPLEX*16array, dimension( 1 + ( N - 1 )*abs( INCX ) ). it's the actual vector we're vibing through β¨INCXβINCXisINTEGER, and it's the storage spacing between elements ofZX. iykyk β it's the stride, bestie, the steps you take between one element and the next π
π 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(*)
the lore!! jack dongarra dropped this on 1/15/85, then in 3/93 it got tweaked so it bails out and returns if incx .le. 0 (yes, if your stride is zero or negative, it's giving nothing, it just returns), and then on 12/3/93 the array(1) declarations got changed to array(*). iconic history right there π«Ά
π Definition at line 70 of file izamax.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code. (not me writing my own bio, the robots did it π)
and that's the whole page, bestie β every flag, every param, every dusty historical note, all intact, nothing skipped, we ate and left no crumbs π β¨
this was LAPACK Version 3.12.0, dated Tue Nov 28 2023 12:08:41, from BLAS/SRC/izamax.f(3) β mwah, take care of her πππ¦πΈ
π¦ 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