LAPACK 3.12.0
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ iladiag()

integer function iladiag ( character  diag)

ILADIAG

Download ILADIAG + dependencies [TGZ] [ZIP] [TXT]

Purpose:
 This subroutine translated from a character string specifying if a
 matrix has unit diagonal or not to the relevant BLAST-specified
 integer constant.

 ILADIAG returns an INTEGER.  If ILADIAG < 0, then the input is not a
 character indicating a unit or non-unit diagonal.  Otherwise ILADIAG
 returns the constant value corresponding to DIAG.
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.

Definition at line 57 of file iladiag.f.

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 DIAG
65* ..
66*
67* =====================================================================
68*
69* .. Parameters ..
70 INTEGER BLAS_NON_UNIT_DIAG, BLAS_UNIT_DIAG
71 parameter( blas_non_unit_diag = 131, blas_unit_diag = 132 )
72* ..
73* .. External Functions ..
74 LOGICAL LSAME
75 EXTERNAL lsame
76* ..
77* .. Executable Statements ..
78 IF( lsame( diag, 'N' ) ) THEN
79 iladiag = blas_non_unit_diag
80 ELSE IF( lsame( diag, 'U' ) ) THEN
81 iladiag = blas_unit_diag
82 ELSE
83 iladiag = -1
84 END IF
85 RETURN
86*
87* End of ILADIAG
88*
integer function iladiag(diag)
ILADIAG
Definition iladiag.f:58
logical function lsame(ca, cb)
LSAME
Definition lsame.f:48
Here is the call graph for this function:
Here is the caller graph for this function: