LAPACK95 provides a function, LA_LAMCH, that returns the values of the
machine constants listed in Table 1.1.
LA_LAMCH computes these constants the first time it is called in a run.
For performance testing, this initial cost can be hidden by
including a call to LA_LAMCH in the main program before any calls to
the routines that are to be timed.
Argument | Constant returned |
'E' or 'e' | eps: relative machine precision |
'S' or 's' | sfmin: safe minimum, such that 1/sfmin does not overflow |
'B' or 'b' | base: base of the machine |
'P' or 'p' | prec: epsbase |
'N' or 'n' | t: number of (base) digits in the mantissa |
'R' or 'r' | rnd: 1.0 when rounding occurs in addition, 0.0 otherwise |
'M' or 'm' | emin: minimum exponent before (gradual) underflow |
'U' or 'u' | rmin: underflow threshold - base |
'L' or 'l' | emax: largest exponent before overflow |
'O' or 'o' | rmax: overflow threshold - base (1-eps) |