BLAS/SRC/idamax.f(3)
π BLAS/SRC/idamax.f β the LAPACK manual, but make it cute π
okay bestie, gather round, we're reading a LAPACK manpage together and honestly? it's giving iconic. this one lives in the BLAS folder, file name idamax.f, and it's the whole reason your vector knows which element is the drama queen π
β¨ NAME β¨
BLAS/SRC/idamax.f β no cap, that's the whole name, that's the file, that's the moment π
πΈ SYNOPSIS πΈ
Functions/Subroutines
integer function idamax (n, dx, incx)
IDAMAX β that's her. that's the function. she's an integer function and she's about to tell you where the biggest absolute value is living π¦
π Function/Subroutine Documentation π
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.
periodt. she doesn't care about the sign, she doesn't care about the vibe of the number, she cares about the absolute value β and if there's a tie she points at the first one, because she's loyal like that π«Ά
β Parameters β
NβN is INTEGER, the number of elements in your input vector(s). it's the headcount, the guest list, how many besties showed up to the function πDXβDX is DOUBLE PRECISION array, dimension ( 1 + ( N - 1 )*abs( INCX ) ). yes bestie, that dimension expression is a whole mood, but it's just the actual size your array needs to be given how you're striding through it πINCXβINCX is INTEGER, the storage spacing between elements ofDX. think of it like "how many seats apart are we sitting" β1means everyone's cosy and adjacent, bigger numbers mean we're spread out across the room π§
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole squad, the founding mothers and fathers of this numerical empire, we love them, we thank them π
π₯ 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(*)
ngl the lore is deep β jack dongarra, linpack, dated 3/11/78, that's ancient history in the best way. then in 3/93 she got modified to return if incx .le. 0 (translation: if INCX is zero or negative, she just bails and returns, no crash, no drama π). then on 12/3/93 the array(1) declarations got changed to array(*) β glow-up of the century honestly β¨
heads up bestie:INCXbeing<= 0means IDAMAX returns early instead of doing the search. that's not a bug, that's the documented behaviour, no cap.
π Definition
Definition at line 70 of file idamax.f. β go look, she's right there on line 70 π
π Author
Generated automatically by Doxygen for LAPACK from the source code. β so like, a robot wrote this manpage, and a human is now explaining it to you with butterflies. teamwork π
okay that's the whole page!! and for the cute lil sign-off: this beauty is from Version 3.12.0, dated Tue Nov 28 2023 12:08:41, filed under BLAS/SRC/idamax.f(3). she ate and left no crumbs π
β¨π¦
π¦ 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