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.

121 lines
2.7 KiB

2 years ago
*> \brief \b CLCTSX
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
* Definition:
* ===========
*
* LOGICAL FUNCTION CLCTSX( ALPHA, BETA )
*
* .. Scalar Arguments ..
* COMPLEX ALPHA, BETA
* ..
*
*
*> \par Purpose:
* =============
*>
*> \verbatim
*>
*> This function is used to determine what eigenvalues will be
*> selected. If this is part of the test driver CDRGSX, do not
*> change the code UNLESS you are testing input examples and not
*> using the built-in examples.
*> \endverbatim
*
* Arguments:
* ==========
*
*> \param[in] ALPHA
*> \verbatim
*> ALPHA is COMPLEX
*> \endverbatim
*>
*> \param[in] BETA
*> \verbatim
*> BETA is COMPLEX
*>
*> parameters to decide whether the pair (ALPHA, BETA) is
*> selected.
*> \endverbatim
*
* Authors:
* ========
*
*> \author Univ. of Tennessee
*> \author Univ. of California Berkeley
*> \author Univ. of Colorado Denver
*> \author NAG Ltd.
*
*> \ingroup complex_eig
*
* =====================================================================
LOGICAL FUNCTION CLCTSX( ALPHA, BETA )
*
* -- 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 ..
COMPLEX ALPHA, BETA
* ..
*
* =====================================================================
*
* .. Parameters ..
* REAL ZERO
* PARAMETER ( ZERO = 0.0E+0 )
* COMPLEX CZERO
* PARAMETER ( CZERO = ( 0.0E+0, 0.0E+0 ) )
* ..
* .. Scalars in Common ..
LOGICAL FS
INTEGER I, M, MPLUSN, N
* ..
* .. Common blocks ..
COMMON / MN / M, N, MPLUSN, I, FS
* ..
* .. Save statement ..
SAVE
* ..
* .. Executable Statements ..
*
IF( FS ) THEN
I = I + 1
IF( I.LE.M ) THEN
CLCTSX = .FALSE.
ELSE
CLCTSX = .TRUE.
END IF
IF( I.EQ.MPLUSN ) THEN
FS = .FALSE.
I = 0
END IF
ELSE
I = I + 1
IF( I.LE.N ) THEN
CLCTSX = .TRUE.
ELSE
CLCTSX = .FALSE.
END IF
IF( I.EQ.MPLUSN ) THEN
FS = .TRUE.
I = 0
END IF
END IF
*
* IF( BETA.EQ.CZERO ) THEN
* CLCTSX = ( REAL( ALPHA ).GT.ZERO )
* ELSE
* CLCTSX = ( REAL( ALPHA/BETA ).GT.ZERO )
* END IF
*
RETURN
*
* End of CLCTSX
*
END