F06SFF (ZTRMV) (PDF version)
F06 Chapter Contents
F06 Chapter Introduction
NAG Library Manual

NAG Library Routine Document

F06SFF (ZTRMV)

Note:  before using this routine, please read the Users' Note for your implementation to check the interpretation of bold italicised terms and other implementation-dependent details.

 Contents

    1  Purpose
    7  Accuracy
    10  Example

1  Purpose

F06SFF (ZTRMV) computes the matrix-vector product for a complex triangular matrix, its transpose or its conjugate transpose.

2  Specification

SUBROUTINE F06SFF ( UPLO, TRANS, DIAG, N, A, LDA, X, INCX)
INTEGER  N, LDA, INCX
COMPLEX (KIND=nag_wp)  A(LDA,*), X(*)
CHARACTER(1)  UPLO, TRANS, DIAG
The routine may be called by its BLAS name ztrmv.

3  Description

F06SFF (ZTRMV) performs one of the matrix-vector operations
xAx ,   xATx   or   xAHx ,  
where A is an n by n complex triangular matrix, and x is an n-element complex vector.

4  References

None.

5  Parameters

1:     UPLO – CHARACTER(1)Input
On entry: specifies whether A is upper or lower triangular.
UPLO='U'
A is upper triangular.
UPLO='L'
A is lower triangular.
Constraint: UPLO='U' or 'L'.
2:     TRANS – CHARACTER(1)Input
On entry: specifies the operation to be performed.
TRANS='N'
xAx.
TRANS='T'
xATx.
TRANS='C'
xAHx.
Constraint: TRANS='N', 'T' or 'C'.
3:     DIAG – CHARACTER(1)Input
On entry: specifies whether A has nonunit or unit diagonal elements.
DIAG='N'
The diagonal elements are stored explicitly.
DIAG='U'
The diagonal elements are assumed to be 1, and are not referenced.
Constraint: DIAG='N' or 'U'.
4:     N – INTEGERInput
On entry: n, the order of the matrix A.
Constraint: N0.
5:     ALDA* – COMPLEX (KIND=nag_wp) arrayInput
Note: the second dimension of the array A must be at least N.
On entry: the n by n triangular matrix A.
  • If UPLO='U', A is upper triangular and the elements of the array below the diagonal are not referenced.
  • If UPLO='L', A is lower triangular and the elements of the array above the diagonal are not referenced.
  • If DIAG='U', the diagonal elements of A are assumed to be 1, and are not referenced.
6:     LDA – INTEGERInput
On entry: the first dimension of the array A as declared in the (sub)program from which F06SFF (ZTRMV) is called.
Constraint: LDA max1,N .
7:     X* – COMPLEX (KIND=nag_wp) arrayInput/Output
Note: the dimension of the array X must be at least max1, 1+N-1 ×INCX .
On entry: the vector x.
If INCX>0, xi must be stored in X1+i1×INCX , for i=1,2,,N.
If INCX<0, xi must be stored in X1Ni×INCX , for i=1,2,,N.
On exit: the updated vector x stored in the array elements used to supply the original vector x.
8:     INCX – INTEGERInput
On entry: the increment in the subscripts of X between successive elements of x.
Constraint: INCX0.

6  Error Indicators and Warnings

None.

7  Accuracy

Not applicable.

8  Parallelism and Performance

Not applicable.

9  Further Comments

None.

10  Example

None.

F06SFF (ZTRMV) (PDF version)
F06 Chapter Contents
F06 Chapter Introduction
NAG Library Manual

© The Numerical Algorithms Group Ltd, Oxford, UK. 2015