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