LAPACK 3.3.1 Linear Algebra PACKage

# ilaprec.f

Go to the documentation of this file.
```00001       INTEGER FUNCTION ILAPREC( PREC )
00002 *
00003 *  -- LAPACK routine (version 3.2.2)                                    --
00004 *
00005 *  -- June 2010                                                       --
00006 *
00007 *  -- LAPACK is a software package provided by Univ. of Tennessee,    --
00008 *  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
00009 *
00010 *     .. Scalar Arguments ..
00011       CHARACTER          PREC
00012 *     ..
00013 *
00014 *  Purpose
00015 *  =======
00016 *
00017 *  This subroutine translated from a character string specifying an
00018 *  intermediate precision to the relevant BLAST-specified integer
00019 *  constant.
00020 *
00021 *  ILAPREC returns an INTEGER.  If ILAPREC < 0, then the input is not a
00022 *  character indicating a supported intermediate precision.  Otherwise
00023 *  ILAPREC returns the constant value corresponding to PREC.
00024 *
00025 *  Arguments
00026 *  =========
00027 *  PREC    (input) CHARACTER
00028 *          Specifies the form of the system of equations:
00029 *          = 'S':  Single
00030 *          = 'D':  Double
00031 *          = 'I':  Indigenous
00032 *          = 'X', 'E':  Extra
00033 *  =====================================================================
00034 *
00035 *     .. Parameters ..
00036       INTEGER BLAS_PREC_SINGLE, BLAS_PREC_DOUBLE, BLAS_PREC_INDIGENOUS,
00037      \$           BLAS_PREC_EXTRA
00038       PARAMETER ( BLAS_PREC_SINGLE = 211, BLAS_PREC_DOUBLE = 212,
00039      \$     BLAS_PREC_INDIGENOUS = 213, BLAS_PREC_EXTRA = 214 )
00040 *     ..
00041 *     .. External Functions ..
00042       LOGICAL            LSAME
00043       EXTERNAL           LSAME
00044 *     ..
00045 *     .. Executable Statements ..
00046       IF( LSAME( PREC, 'S' ) ) THEN
00047          ILAPREC = BLAS_PREC_SINGLE
00048       ELSE IF( LSAME( PREC, 'D' ) ) THEN
00049          ILAPREC = BLAS_PREC_DOUBLE
00050       ELSE IF( LSAME( PREC, 'I' ) ) THEN
00051          ILAPREC = BLAS_PREC_INDIGENOUS
00052       ELSE IF( LSAME( PREC, 'X' ) .OR. LSAME( PREC, 'E' ) ) THEN
00053          ILAPREC = BLAS_PREC_EXTRA
00054       ELSE
00055          ILAPREC = -1
00056       END IF
00057       RETURN
00058 *
00059 *     End of ILAPREC
00060 *
00061       END
```