LAPACK 3.3.1
Linear Algebra PACKage

ilauplo.f

Go to the documentation of this file.
00001       INTEGER FUNCTION ILAUPLO( UPLO )
00002 *
00003 *  -- LAPACK routine (version 3.2) --
00004 *
00005 *  -- April 2009                                                      --
00006 *
00007 *  -- LAPACK is a software package provided by Univ. of Tennessee,    --
00008 *  -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
00009 *
00010 *     .. Scalar Arguments ..
00011       CHARACTER          UPLO
00012 *     ..
00013 *
00014 *  Purpose
00015 *  =======
00016 *
00017 *  This subroutine translated from a character string specifying a
00018 *  upper- or lower-triangular matrix to the relevant BLAST-specified
00019 *  integer constant.
00020 *
00021 *  ILAUPLO returns an INTEGER.  If ILAUPLO < 0, then the input is not
00022 *  a character indicating an upper- or lower-triangular matrix.
00023 *  Otherwise ILAUPLO returns the constant value corresponding to UPLO.
00024 *
00025 *  Arguments
00026 *  =========
00027 *  UPLO    (input) CHARACTER
00028 *          = 'U':  A is upper triangular;
00029 *          = 'L':  A is lower triangular.
00030 *  =====================================================================
00031 *
00032 *     .. Parameters ..
00033       INTEGER BLAS_UPPER, BLAS_LOWER
00034       PARAMETER ( BLAS_UPPER = 121, BLAS_LOWER = 122 )
00035 *     ..
00036 *     .. External Functions ..
00037       LOGICAL            LSAME
00038       EXTERNAL           LSAME
00039 *     ..
00040 *     .. Executable Statements ..
00041       IF( LSAME( UPLO, 'U' ) ) THEN
00042          ILAUPLO = BLAS_UPPER
00043       ELSE IF( LSAME( UPLO, 'L' ) ) THEN
00044          ILAUPLO = BLAS_LOWER
00045       ELSE
00046          ILAUPLO = -1
00047       END IF
00048       RETURN
00049 *
00050 *     End of ILAUPLO
00051 *
00052       END
 All Files Functions