File:  [local] / rpl / lapack / lapack / ilaprec.f
Revision 1.10: download - view: text, annotated - select for diffs - revision graph
Mon Aug 7 08:39:14 2023 UTC (9 months ago) by bertrand
Branches: MAIN
CVS tags: rpl-4_1_35, rpl-4_1_34, HEAD
Première mise à jour de lapack et blas.

    1: *> \brief \b ILAPREC
    2: *
    3: *  =========== DOCUMENTATION ===========
    4: *
    5: * Online html documentation available at
    6: *            http://www.netlib.org/lapack/explore-html/
    7: *
    8: *> \htmlonly
    9: *> Download ILAPREC + dependencies
   10: *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/ilaprec.f">
   11: *> [TGZ]</a>
   12: *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/ilaprec.f">
   13: *> [ZIP]</a>
   14: *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/ilaprec.f">
   15: *> [TXT]</a>
   16: *> \endhtmlonly
   17: *
   18: *  Definition:
   19: *  ===========
   20: *
   21: *       INTEGER FUNCTION ILAPREC( PREC )
   22: *
   23: *       .. Scalar Arguments ..
   24: *       CHARACTER          PREC
   25: *       ..
   26: *
   27: *
   28: *> \par Purpose:
   29: *  =============
   30: *>
   31: *> \verbatim
   32: *>
   33: *> This subroutine translated from a character string specifying an
   34: *> intermediate precision to the relevant BLAST-specified integer
   35: *> constant.
   36: *>
   37: *> ILAPREC returns an INTEGER.  If ILAPREC < 0, then the input is not a
   38: *> character indicating a supported intermediate precision.  Otherwise
   39: *> ILAPREC returns the constant value corresponding to PREC.
   40: *> \endverbatim
   41: *
   42: *  Arguments:
   43: *  ==========
   44: *
   45: *
   46: *  Authors:
   47: *  ========
   48: *
   49: *> \author Univ. of Tennessee
   50: *> \author Univ. of California Berkeley
   51: *> \author Univ. of Colorado Denver
   52: *> \author NAG Ltd.
   53: *
   54: *> \ingroup auxOTHERcomputational
   55: *
   56: *  =====================================================================
   57:       INTEGER FUNCTION ILAPREC( PREC )
   58: *
   59: *  -- LAPACK computational routine --
   60: *  -- LAPACK is a software package provided by Univ. of Tennessee,    --
   61: *  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
   62: *
   63: *     .. Scalar Arguments ..
   64:       CHARACTER          PREC
   65: *     ..
   66: *
   67: *  =====================================================================
   68: *
   69: *     .. Parameters ..
   70:       INTEGER BLAS_PREC_SINGLE, BLAS_PREC_DOUBLE, BLAS_PREC_INDIGENOUS,
   71:      $           BLAS_PREC_EXTRA
   72:       PARAMETER ( BLAS_PREC_SINGLE = 211, BLAS_PREC_DOUBLE = 212,
   73:      $     BLAS_PREC_INDIGENOUS = 213, BLAS_PREC_EXTRA = 214 )
   74: *     ..
   75: *     .. External Functions ..
   76:       LOGICAL            LSAME
   77:       EXTERNAL           LSAME
   78: *     ..
   79: *     .. Executable Statements ..
   80:       IF( LSAME( PREC, 'S' ) ) THEN
   81:          ILAPREC = BLAS_PREC_SINGLE
   82:       ELSE IF( LSAME( PREC, 'D' ) ) THEN
   83:          ILAPREC = BLAS_PREC_DOUBLE
   84:       ELSE IF( LSAME( PREC, 'I' ) ) THEN
   85:          ILAPREC = BLAS_PREC_INDIGENOUS
   86:       ELSE IF( LSAME( PREC, 'X' ) .OR. LSAME( PREC, 'E' ) ) THEN
   87:          ILAPREC = BLAS_PREC_EXTRA
   88:       ELSE
   89:          ILAPREC = -1
   90:       END IF
   91:       RETURN
   92: *
   93: *     End of ILAPREC
   94: *
   95:       END

CVSweb interface <joel.bertrand@systella.fr>