#include "blaswrap.h" /* dlctes.f -- translated by f2c (version 20061008). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of the command line, as in cc *.o -lf2c -lm Source for libf2c is in /netlib/f2c/libf2c.zip, e.g., http://www.netlib.org/f2c/libf2c.zip */ #include "f2c.h" /* Table of constant values */ static doublereal c_b2 = 1.; logical dlctes_(doublereal *zr, doublereal *zi, doublereal *d__) { /* System generated locals */ logical ret_val; /* Builtin functions */ double d_sign(doublereal *, doublereal *); /* -- LAPACK test routine (version 3.1) -- Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. November 2006 Purpose ======= DLCTES 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 DDRGES to test whether the driver routine DGGES succesfully sorts eigenvalues. Arguments ========= ZR (input) DOUBLE PRECISION The numerator of the real part of a complex eigenvalue (ZR/D) + i*(ZI/D). ZI (input) DOUBLE PRECISION The numerator of the imaginary part of a complex eigenvalue (ZR/D) + i*(ZI). D (input) DOUBLE PRECISION The denominator part of a complex eigenvalue (ZR/D) + i*(ZI/D). ===================================================================== */ if (*d__ == 0.) { ret_val = *zr < 0.; } else { ret_val = d_sign(&c_b2, zr) != d_sign(&c_b2, d__); } return ret_val; /* End of DLCTES */ } /* dlctes_ */