102 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Fortran
		
	
	
	
			
		
		
	
	
			102 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Fortran
		
	
	
	
| *> \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.
 | |
| *
 | |
| *> \date June 2016
 | |
| *
 | |
| *> \ingroup single_eig
 | |
| *
 | |
| *  =====================================================================
 | |
|       LOGICAL          FUNCTION SLCTES( ZR, ZI, D )
 | |
| *
 | |
| *  -- LAPACK test routine (version 3.7.0) --
 | |
| *  -- LAPACK is a software package provided by Univ. of Tennessee,    --
 | |
| *  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
 | |
| *     June 2016
 | |
| *
 | |
| *     .. 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
 |