Cloned library LAPACK-3.11.0 with extra build files for internal package management.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

98 lines
2.3 KiB

*> \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