PDLAMCH(l)
β¨ NAME β¨
okay so bestie, meet PDLAMCH π
β the LAPACK auxiliary routine whose whole entire job is to determine double precision machine parameters. that's it. that's the gig. she's not doing side quests, she's not doing your taxes, she's just telling you what your machine's double precision vibes are. π
πΈ SYNOPSIS πΈ
DOUBLE PRECISION FUNCTION PDLAMCH( ICTXT, CMACH )
CHARACTER CMACH
INTEGER ICTXT
π¦ PURPOSE π¦
PDLAMCH determines double precision machine parameters. literally her only character trait and honestly? iconic. no cap. β¨
π ARGUMENTS π
ICTXT(global input)INTEGERβ the BLACS context handle, aka the specific little universe where the computation takes place. think of it as the group chat this whole thing is happening in. π«ΆCMACH(global input)CHARACTER*1β this one specifies the value to be returned byPDLAMCH, and you get to pick your fighter:= 'E' or 'e', PDLAMCH := eps= 'S' or 's , PDLAMCH := sfmin= 'B' or 'b', PDLAMCH := base= 'P' or 'p', PDLAMCH := eps*base= 'N' or 'n', PDLAMCH := t= 'R' or 'r', PDLAMCH := rnd= 'M' or 'm', PDLAMCH := emin= 'U' or 'u', PDLAMCH := rmin= 'L' or 'l', PDLAMCH := emax= 'O' or 'o', PDLAMCH := rmax
where
epsβ relative machine precisionsfminβ safe minimum, such that1/sfmindoes not overflowbaseβ base of the machineprecβeps*basetβ number of (base) digits in the mantissarndβ1.0when rounding occurs in addition,0.0otherwiseeminβ minimum exponent before (gradual) underflowrminβ underflow threshold -base**(emin-1)emaxβ largest exponent before overflowrmaxβ overflow threshold -(base**emax)*(1-eps)
ngl bestie, those are the definitions and you're gonna want them memorized, because CMACH is a single character and one wrong letter is a whole different number. π
and that's the whole page, fr fr. π this one is from LAPACK version 1.5, dated 12 May 1997 β yes she's vintage, yes she still ate, and she's serving PDLAMCH(l) realness to this day. πβ¨π
π¦ where this page comes from
- ubuntu jammy: scalapack-doc 1.5-11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms