numeric-linalg
Educational material on the SciPy implementation of numerical linear algebra algorithms
Name | Size | Mode | |
.. | |||
lapack/TESTING/EIG/slctes.f | 2326B | -rw-r--r-- |
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
*> \brief \b SLCTES * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * LOGICAL FUNCTION SLCTES( ZR, ZI, D ) * * .. Scalar Arguments .. * REAL D, ZI, ZR * .. * * *> \par Purpose: * ============= *> *> \verbatim *> *> SLCTES returns .TRUE. if the eigenvalue (ZR/D) + sqrt(-1)*(ZI/D) *> is to be selected (specifically, in this subroutine, if the real *> part of the eigenvalue is negative), and otherwise it returns *> .FALSE.. *> *> It is used by the test routine SDRGES to test whether the driver *> routine SGGES successfully sorts eigenvalues. *> \endverbatim * * Arguments: * ========== * *> \param[in] ZR *> \verbatim *> ZR is REAL *> The numerator of the real part of a complex eigenvalue *> (ZR/D) + i*(ZI/D). *> \endverbatim *> *> \param[in] ZI *> \verbatim *> ZI is REAL *> The numerator of the imaginary part of a complex eigenvalue *> (ZR/D) + i*(ZI). *> \endverbatim *> *> \param[in] D *> \verbatim *> D is REAL *> The denominator part of a complex eigenvalue *> (ZR/D) + i*(ZI/D). *> \endverbatim * * Authors: * ======== * *> \author Univ. of Tennessee *> \author Univ. of California Berkeley *> \author Univ. of Colorado Denver *> \author NAG Ltd. * *> \ingroup single_eig * * ===================================================================== LOGICAL FUNCTION SLCTES( ZR, ZI, D ) * * -- LAPACK test routine -- * -- LAPACK is a software package provided by Univ. of Tennessee, -- * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- * * .. Scalar Arguments .. REAL D, ZI, ZR * .. * * ===================================================================== * * .. Parameters .. REAL ZERO, ONE PARAMETER ( ZERO = 0.0E+0, ONE = 1.0E+0 ) * .. * .. Intrinsic Functions .. INTRINSIC SIGN * .. * .. Executable Statements .. * IF( D.EQ.ZERO ) THEN SLCTES = ( ZR.LT.ZERO ) ELSE SLCTES = ( SIGN( ONE, ZR ).NE.SIGN( ONE, D ) ) END IF * RETURN * * End of SLCTES * END