ilatrans.c
Go to the documentation of this file.
00001 /* ilatrans.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 integer ilatrans_(char *trans)
00017 {
00018     /* System generated locals */
00019     integer ret_val;
00020 
00021     /* Local variables */
00022     extern logical lsame_(char *, char *);
00023 
00024 
00025 /*  -- LAPACK routine (version 3.2) -- */
00026 /*     Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */
00027 /*     October 2008 */
00028 /*     .. Scalar Arguments .. */
00029 /*     .. */
00030 
00031 /*  Purpose */
00032 /*  ======= */
00033 
00034 /*  This subroutine translates from a character string specifying a */
00035 /*  transposition operation to the relevant BLAST-specified integer */
00036 /*  constant. */
00037 
00038 /*  ILATRANS returns an INTEGER.  If ILATRANS < 0, then the input is not */
00039 /*  a character indicating a transposition operator.  Otherwise ILATRANS */
00040 /*  returns the constant value corresponding to TRANS. */
00041 
00042 /*  Arguments */
00043 /*  ========= */
00044 /*  TRANS   (input) CHARACTER*1 */
00045 /*          Specifies the form of the system of equations: */
00046 /*          = 'N':  No transpose */
00047 /*          = 'T':  Transpose */
00048 /*          = 'C':  Conjugate transpose */
00049 /*  ===================================================================== */
00050 
00051 /*     .. Parameters .. */
00052 /*     .. */
00053 /*     .. External Functions .. */
00054 /*     .. */
00055 /*     .. Executable Statements .. */
00056     if (lsame_(trans, "N")) {
00057         ret_val = 111;
00058     } else if (lsame_(trans, "T")) {
00059         ret_val = 112;
00060     } else if (lsame_(trans, "C")) {
00061         ret_val = 113;
00062     } else {
00063         ret_val = -1;
00064     }
00065     return ret_val;
00066 
00067 /*     End of ILATRANS */
00068 
00069 } /* ilatrans_ */


swiftnav
Author(s):
autogenerated on Sat Jun 8 2019 18:55:50