ilaprec.c
Go to the documentation of this file.
00001 /* ilaprec.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 ilaprec_(char *prec)
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 translated from a character string specifying an */
00035 /*  intermediate precision to the relevant BLAST-specified integer */
00036 /*  constant. */
00037 
00038 /*  ILAPREC returns an INTEGER.  If ILAPREC < 0, then the input is not a */
00039 /*  character indicating a supported intermediate precision.  Otherwise */
00040 /*  ILAPREC returns the constant value corresponding to PREC. */
00041 
00042 /*  Arguments */
00043 /*  ========= */
00044 /*  PREC   (input) CHARACTER*1 */
00045 /*          Specifies the form of the system of equations: */
00046 /*          = 'S':  Single */
00047 /*          = 'D':  Double */
00048 /*          = 'I':  Indigenous */
00049 /*          = 'X', 'E':  Extra */
00050 /*  ===================================================================== */
00051 
00052 /*     .. Parameters .. */
00053 /*     .. */
00054 /*     .. External Functions .. */
00055 /*     .. */
00056 /*     .. Executable Statements .. */
00057     if (lsame_(prec, "S")) {
00058         ret_val = 211;
00059     } else if (lsame_(prec, "D")) {
00060         ret_val = 212;
00061     } else if (lsame_(prec, "I")) {
00062         ret_val = 213;
00063     } else if (lsame_(prec, "X") || lsame_(prec, "E")) {
00064         ret_val = 214;
00065     } else {
00066         ret_val = -1;
00067     }
00068     return ret_val;
00069 
00070 /*     End of ILAPREC */
00071 
00072 } /* ilaprec_ */


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