01:       INTEGER FUNCTION ILAUPLO( UPLO )
02: *
03: *  -- LAPACK routine (version 3.2) --
04: *     Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd..
05: *     October 2008
06: *     .. Scalar Arguments ..
07:       CHARACTER          UPLO
08: *     ..
09: *
10: *  Purpose
11: *  =======
12: *
13: *  This subroutine translated from a character string specifying a
14: *  upper- or lower-triangular matrix to the relevant BLAST-specified
15: *  integer constant.
16: *
17: *  ILAUPLO returns an INTEGER.  If ILAUPLO < 0, then the input is not
18: *  a character indicating an upper- or lower-triangular matrix.
19: *  Otherwise ILAUPLO returns the constant value corresponding to UPLO.
20: *
21: *  Arguments
22: *  =========
23: *  UPLO    (input) CHARACTER
24: *          = 'U':  A is upper triangular;
25: *          = 'L':  A is lower triangular.
26: *  =====================================================================
27: *
28: *     .. Parameters ..
29:       INTEGER BLAS_UPPER, BLAS_LOWER
30:       PARAMETER ( BLAS_UPPER = 121, BLAS_LOWER = 122 )
31: *     ..
32: *     .. External Functions ..
33:       LOGICAL            LSAME
34:       EXTERNAL           LSAME
35: *     ..
36: *     .. Executable Statements ..
37:       IF( LSAME( UPLO, 'U' ) ) THEN
38:          ILAUPLO = BLAS_UPPER
39:       ELSE IF( LSAME( UPLO, 'L' ) ) THEN
40:          ILAUPLO = BLAS_LOWER
41:       ELSE
42:          ILAUPLO = -1
43:       END IF
44:       RETURN
45: *
46: *     End of ILAUPLO
47: *
48:       END
49: