LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
iladiag.f
Go to the documentation of this file.
1*> \brief \b ILADIAG
2*
3* =========== DOCUMENTATION ===========
4*
5* Online html documentation available at
6* http://www.netlib.org/lapack/explore-html/
7*
8*> Download ILADIAG + dependencies
9*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/iladiag.f">
10*> [TGZ]</a>
11*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/iladiag.f">
12*> [ZIP]</a>
13*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/iladiag.f">
14*> [TXT]</a>
15*
16* Definition:
17* ===========
18*
19* INTEGER FUNCTION ILADIAG( DIAG )
20*
21* .. Scalar Arguments ..
22* CHARACTER DIAG
23* ..
24*
25*
26*> \par Purpose:
27* =============
28*>
29*> \verbatim
30*>
31*> This subroutine translated from a character string specifying if a
32*> matrix has unit diagonal or not to the relevant BLAST-specified
33*> integer constant.
34*>
35*> ILADIAG returns an INTEGER. If ILADIAG < 0, then the input is not a
36*> character indicating a unit or non-unit diagonal. Otherwise ILADIAG
37*> returns the constant value corresponding to DIAG.
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 iladiag
53*
54* =====================================================================
55 INTEGER FUNCTION iladiag( DIAG )
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 diag
63* ..
64*
65* =====================================================================
66*
67* .. Parameters ..
68 INTEGER blas_non_unit_diag, blas_unit_diag
69 parameter( blas_non_unit_diag = 131, blas_unit_diag = 132 )
70* ..
71* .. External Functions ..
72 LOGICAL lsame
73 EXTERNAL lsame
74* ..
75* .. Executable Statements ..
76 IF( lsame( diag, 'N' ) ) THEN
77 iladiag = blas_non_unit_diag
78 ELSE IF( lsame( diag, 'U' ) ) THEN
79 iladiag = blas_unit_diag
80 ELSE
81 iladiag = -1
82 END IF
83 RETURN
84*
85* End of ILADIAG
86*
87 END
integer function iladiag(diag)
ILADIAG
Definition iladiag.f:56
logical function lsame(ca, cb)
LSAME
Definition lsame.f:48