00001 /* chla_transtype.f -- translated by f2c (version 20061008). 00002 You must link the resulting object file with libf2c: 00003 on Microsoft Windows system, link with libf2c.lib; 00004 on Linux or Unix systems, link with .../path/to/libf2c.a -lm 00005 or, if you install libf2c.a in a standard place, with -lf2c -lm 00006 -- in that order, at the end of the command line, as in 00007 cc *.o -lf2c -lm 00008 Source for libf2c is in /netlib/f2c/libf2c.zip, e.g., 00009 00010 http://www.netlib.org/f2c/libf2c.zip 00011 */ 00012 00013 #include "f2c.h" 00014 #include "blaswrap.h" 00015 00016 /* Character */ VOID chla_transtype__(char *ret_val, ftnlen ret_val_len, 00017 integer *trans) 00018 { 00019 00020 /* -- LAPACK routine (version 3.2) -- */ 00021 /* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */ 00022 /* October 2008 */ 00023 /* .. Scalar Arguments .. */ 00024 /* .. */ 00025 00026 /* Purpose */ 00027 /* ======= */ 00028 00029 /* This subroutine translates from a BLAST-specified integer constant to */ 00030 /* the character string specifying a transposition operation. */ 00031 00032 /* CHLA_TRANSTYPE returns an CHARACTER*1. If CHLA_TRANSTYPE is 'X', */ 00033 /* then input is not an integer indicating a transposition operator. */ 00034 /* Otherwise CHLA_TRANSTYPE returns the constant value corresponding to */ 00035 /* TRANS. */ 00036 00037 /* Arguments */ 00038 /* ========= */ 00039 /* TRANS (input) INTEGER */ 00040 /* Specifies the form of the system of equations: */ 00041 /* = BLAS_NO_TRANS = 111 : No Transpose */ 00042 /* = BLAS_TRANS = 112 : Transpose */ 00043 /* = BLAS_CONJ_TRANS = 113 : Conjugate Transpose */ 00044 /* ===================================================================== */ 00045 00046 /* .. Parameters .. */ 00047 /* .. */ 00048 /* .. Executable Statements .. */ 00049 if (*trans == 111) { 00050 *(unsigned char *)ret_val = 'N'; 00051 } else if (*trans == 112) { 00052 *(unsigned char *)ret_val = 'T'; 00053 } else if (*trans == 113) { 00054 *(unsigned char *)ret_val = 'C'; 00055 } else { 00056 *(unsigned char *)ret_val = 'X'; 00057 } 00058 return ; 00059 00060 /* End of CHLA_TRANSTYPE */ 00061 00062 } /* chla_transtype__ */