version 1.2, 2010/04/21 13:45:12
|
version 1.13, 2017/06/17 10:53:46
|
Line 1
|
Line 1
|
SUBROUTINE ZTPMV(UPLO,TRANS,DIAG,N,AP,X,INCX) |
*> \brief \b ZTPMV |
* .. Scalar Arguments .. |
|
INTEGER INCX,N |
|
CHARACTER DIAG,TRANS,UPLO |
|
* .. |
|
* .. Array Arguments .. |
|
DOUBLE COMPLEX AP(*),X(*) |
|
* .. |
|
* |
* |
* Purpose |
* =========== DOCUMENTATION =========== |
* ======= |
|
* |
* |
* ZTPMV performs one of the matrix-vector operations |
* Online html documentation available at |
|
* http://www.netlib.org/lapack/explore-html/ |
* |
* |
* x := A*x, or x := A'*x, or x := conjg( A' )*x, |
* Definition: |
|
* =========== |
|
* |
|
* SUBROUTINE ZTPMV(UPLO,TRANS,DIAG,N,AP,X,INCX) |
|
* |
|
* .. Scalar Arguments .. |
|
* INTEGER INCX,N |
|
* CHARACTER DIAG,TRANS,UPLO |
|
* .. |
|
* .. Array Arguments .. |
|
* COMPLEX*16 AP(*),X(*) |
|
* .. |
|
* |
|
* |
|
*> \par Purpose: |
|
* ============= |
|
*> |
|
*> \verbatim |
|
*> |
|
*> ZTPMV performs one of the matrix-vector operations |
|
*> |
|
*> x := A*x, or x := A**T*x, or x := A**H*x, |
|
*> |
|
*> where x is an n element vector and A is an n by n unit, or non-unit, |
|
*> upper or lower triangular matrix, supplied in packed form. |
|
*> \endverbatim |
* |
* |
* where x is an n element vector and A is an n by n unit, or non-unit, |
* Arguments: |
* upper or lower triangular matrix, supplied in packed form. |
|
* |
|
* Arguments |
|
* ========== |
* ========== |
* |
* |
* UPLO - CHARACTER*1. |
*> \param[in] UPLO |
* On entry, UPLO specifies whether the matrix is an upper or |
*> \verbatim |
* lower triangular matrix as follows: |
*> UPLO is CHARACTER*1 |
* |
*> On entry, UPLO specifies whether the matrix is an upper or |
* UPLO = 'U' or 'u' A is an upper triangular matrix. |
*> lower triangular matrix as follows: |
* |
*> |
* UPLO = 'L' or 'l' A is a lower triangular matrix. |
*> UPLO = 'U' or 'u' A is an upper triangular matrix. |
* |
*> |
* Unchanged on exit. |
*> UPLO = 'L' or 'l' A is a lower triangular matrix. |
* |
*> \endverbatim |
* TRANS - CHARACTER*1. |
*> |
* On entry, TRANS specifies the operation to be performed as |
*> \param[in] TRANS |
* follows: |
*> \verbatim |
* |
*> TRANS is CHARACTER*1 |
* TRANS = 'N' or 'n' x := A*x. |
*> On entry, TRANS specifies the operation to be performed as |
* |
*> follows: |
* TRANS = 'T' or 't' x := A'*x. |
*> |
* |
*> TRANS = 'N' or 'n' x := A*x. |
* TRANS = 'C' or 'c' x := conjg( A' )*x. |
*> |
* |
*> TRANS = 'T' or 't' x := A**T*x. |
* Unchanged on exit. |
*> |
* |
*> TRANS = 'C' or 'c' x := A**H*x. |
* DIAG - CHARACTER*1. |
*> \endverbatim |
* On entry, DIAG specifies whether or not A is unit |
*> |
* triangular as follows: |
*> \param[in] DIAG |
* |
*> \verbatim |
* DIAG = 'U' or 'u' A is assumed to be unit triangular. |
*> DIAG is CHARACTER*1 |
* |
*> On entry, DIAG specifies whether or not A is unit |
* DIAG = 'N' or 'n' A is not assumed to be unit |
*> triangular as follows: |
* triangular. |
*> |
* |
*> DIAG = 'U' or 'u' A is assumed to be unit triangular. |
* Unchanged on exit. |
*> |
* |
*> DIAG = 'N' or 'n' A is not assumed to be unit |
* N - INTEGER. |
*> triangular. |
* On entry, N specifies the order of the matrix A. |
*> \endverbatim |
* N must be at least zero. |
*> |
* Unchanged on exit. |
*> \param[in] N |
* |
*> \verbatim |
* AP - COMPLEX*16 array of DIMENSION at least |
*> N is INTEGER |
* ( ( n*( n + 1 ) )/2 ). |
*> On entry, N specifies the order of the matrix A. |
* Before entry with UPLO = 'U' or 'u', the array AP must |
*> N must be at least zero. |
* contain the upper triangular matrix packed sequentially, |
*> \endverbatim |
* column by column, so that AP( 1 ) contains a( 1, 1 ), |
*> |
* AP( 2 ) and AP( 3 ) contain a( 1, 2 ) and a( 2, 2 ) |
*> \param[in] AP |
* respectively, and so on. |
*> \verbatim |
* Before entry with UPLO = 'L' or 'l', the array AP must |
*> AP is COMPLEX*16 array of DIMENSION at least |
* contain the lower triangular matrix packed sequentially, |
*> ( ( n*( n + 1 ) )/2 ). |
* column by column, so that AP( 1 ) contains a( 1, 1 ), |
*> Before entry with UPLO = 'U' or 'u', the array AP must |
* AP( 2 ) and AP( 3 ) contain a( 2, 1 ) and a( 3, 1 ) |
*> contain the upper triangular matrix packed sequentially, |
* respectively, and so on. |
*> column by column, so that AP( 1 ) contains a( 1, 1 ), |
* Note that when DIAG = 'U' or 'u', the diagonal elements of |
*> AP( 2 ) and AP( 3 ) contain a( 1, 2 ) and a( 2, 2 ) |
* A are not referenced, but are assumed to be unity. |
*> respectively, and so on. |
* Unchanged on exit. |
*> Before entry with UPLO = 'L' or 'l', the array AP must |
* |
*> contain the lower triangular matrix packed sequentially, |
* X - COMPLEX*16 array of dimension at least |
*> column by column, so that AP( 1 ) contains a( 1, 1 ), |
* ( 1 + ( n - 1 )*abs( INCX ) ). |
*> AP( 2 ) and AP( 3 ) contain a( 2, 1 ) and a( 3, 1 ) |
* Before entry, the incremented array X must contain the n |
*> respectively, and so on. |
* element vector x. On exit, X is overwritten with the |
*> Note that when DIAG = 'U' or 'u', the diagonal elements of |
* tranformed vector x. |
*> A are not referenced, but are assumed to be unity. |
* |
*> \endverbatim |
* INCX - INTEGER. |
*> |
* On entry, INCX specifies the increment for the elements of |
*> \param[in] X |
* X. INCX must not be zero. |
*> \verbatim |
* Unchanged on exit. |
*> X is (input/output) COMPLEX*16 array of dimension at least |
* |
*> ( 1 + ( n - 1 )*abs( INCX ) ). |
* Further Details |
*> Before entry, the incremented array X must contain the n |
* =============== |
*> element vector x. On exit, X is overwritten with the |
|
*> transformed vector x. |
|
*> \endverbatim |
|
*> |
|
*> \param[in] INCX |
|
*> \verbatim |
|
*> INCX is INTEGER |
|
*> On entry, INCX specifies the increment for the elements of |
|
*> X. INCX must not be zero. |
|
*> \endverbatim |
|
* |
|
* Authors: |
|
* ======== |
|
* |
|
*> \author Univ. of Tennessee |
|
*> \author Univ. of California Berkeley |
|
*> \author Univ. of Colorado Denver |
|
*> \author NAG Ltd. |
|
* |
|
*> \date December 2016 |
|
* |
|
*> \ingroup complex16_blas_level2 |
|
* |
|
*> \par Further Details: |
|
* ===================== |
|
*> |
|
*> \verbatim |
|
*> |
|
*> Level 2 Blas routine. |
|
*> The vector and matrix arguments are not referenced when N = 0, or M = 0 |
|
*> |
|
*> -- Written on 22-October-1986. |
|
*> Jack Dongarra, Argonne National Lab. |
|
*> Jeremy Du Croz, Nag Central Office. |
|
*> Sven Hammarling, Nag Central Office. |
|
*> Richard Hanson, Sandia National Labs. |
|
*> \endverbatim |
|
*> |
|
* ===================================================================== |
|
SUBROUTINE ZTPMV(UPLO,TRANS,DIAG,N,AP,X,INCX) |
* |
* |
* Level 2 Blas routine. |
* -- Reference BLAS level2 routine (version 3.7.0) -- |
|
* -- Reference BLAS is a software package provided by Univ. of Tennessee, -- |
|
* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- |
|
* December 2016 |
* |
* |
* -- Written on 22-October-1986. |
* .. Scalar Arguments .. |
* Jack Dongarra, Argonne National Lab. |
INTEGER INCX,N |
* Jeremy Du Croz, Nag Central Office. |
CHARACTER DIAG,TRANS,UPLO |
* Sven Hammarling, Nag Central Office. |
* .. |
* Richard Hanson, Sandia National Labs. |
* .. Array Arguments .. |
|
COMPLEX*16 AP(*),X(*) |
|
* .. |
* |
* |
* ===================================================================== |
* ===================================================================== |
* |
* |
* .. Parameters .. |
* .. Parameters .. |
DOUBLE COMPLEX ZERO |
COMPLEX*16 ZERO |
PARAMETER (ZERO= (0.0D+0,0.0D+0)) |
PARAMETER (ZERO= (0.0D+0,0.0D+0)) |
* .. |
* .. |
* .. Local Scalars .. |
* .. Local Scalars .. |
DOUBLE COMPLEX TEMP |
COMPLEX*16 TEMP |
INTEGER I,INFO,IX,J,JX,K,KK,KX |
INTEGER I,INFO,IX,J,JX,K,KK,KX |
LOGICAL NOCONJ,NOUNIT |
LOGICAL NOCONJ,NOUNIT |
* .. |
* .. |
Line 227
|
Line 286
|
END IF |
END IF |
ELSE |
ELSE |
* |
* |
* Form x := A'*x or x := conjg( A' )*x. |
* Form x := A**T*x or x := A**H*x. |
* |
* |
IF (LSAME(UPLO,'U')) THEN |
IF (LSAME(UPLO,'U')) THEN |
KK = (N* (N+1))/2 |
KK = (N* (N+1))/2 |