LAPACK  3.6.1
LAPACK: Linear Algebra PACKage
real function sget06 ( real  RCOND,
real  RCONDC 
)

SGET06

Purpose:
 SGET06 computes a test ratio to compare two values for RCOND.
Parameters
[in]RCOND
          RCOND is REAL
          The estimate of the reciprocal of the condition number of A,
          as computed by SGECON.
[in]RCONDC
          RCONDC is REAL
          The reciprocal of the condition number of A, computed as
          ( 1/norm(A) ) / norm(inv(A)).
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date
November 2011

Definition at line 57 of file sget06.f.

57 *
58 * -- LAPACK test routine (version 3.4.0) --
59 * -- LAPACK is a software package provided by Univ. of Tennessee, --
60 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
61 * November 2011
62 *
63 * .. Scalar Arguments ..
64  REAL rcond, rcondc
65 * ..
66 *
67 * =====================================================================
68 *
69 * .. Parameters ..
70  REAL zero, one
71  parameter ( zero = 0.0e+0, one = 1.0e+0 )
72 * ..
73 * .. Local Scalars ..
74  REAL eps, rat
75 * ..
76 * .. External Functions ..
77  REAL slamch
78  EXTERNAL slamch
79 * ..
80 * .. Intrinsic Functions ..
81  INTRINSIC max, min
82 * ..
83 * .. Executable Statements ..
84 *
85  eps = slamch( 'Epsilon' )
86  IF( rcond.GT.zero ) THEN
87  IF( rcondc.GT.zero ) THEN
88  rat = max( rcond, rcondc ) / min( rcond, rcondc ) -
89  $ ( one-eps )
90  ELSE
91  rat = rcond / eps
92  END IF
93  ELSE
94  IF( rcondc.GT.zero ) THEN
95  rat = rcondc / eps
96  ELSE
97  rat = zero
98  END IF
99  END IF
100  sget06 = rat
101  RETURN
102 *
103 * End of SGET06
104 *
real function sget06(RCOND, RCONDC)
SGET06
Definition: sget06.f:57
real function slamch(CMACH)
SLAMCH
Definition: slamch.f:69