F06QQF (PDF version)
F06 Chapter Contents
F06 Chapter Introduction
NAG Library Manual

NAG Library Routine Document

F06QQF

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

F06QQF performs a QR factorization (as a sequence of plane rotations) of a real upper triangular matrix that has been augmented by a full row.

2  Specification

SUBROUTINE F06QQF ( N, ALPHA, X, INCX, A, LDA, C, S)
INTEGER  N, INCX, LDA
REAL (KIND=nag_wp)  ALPHA, X(*), A(LDA,*), C(N), S(N)

3  Description

F06QQF performs the factorization
U αxT =Q R 0  
where U and R are n by n real upper triangular matrices, x is an n-element real vector, α is a real scalar, and Q is a real orthogonal matrix.
Q is formed as a sequence of plane rotations
QT = Qn Q2 Q1  
where Qk is a rotation in the k,n+1 plane, chosen to annihilate xk.
The 2 by 2 plane rotation part of Qk has the form
ck sk -sk ck .  

4  References

None.

5  Parameters

1:     N – INTEGERInput
On entry: n, the order of the matrices U and R.
Constraint: N0.
2:     ALPHA – REAL (KIND=nag_wp)Input
On entry: the scalar α.
3:     X* – REAL (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. xi must be stored in X1+i1×INCX , for i=1,2,,N.
On exit: the referenced elements are overwritten by the tangents of the rotations Qk, for k=1,2,,n.
4:     INCX – INTEGERInput
On entry: the increment in the subscripts of X between successive elements of x.
Constraint: INCX>0.
5:     ALDA* – REAL (KIND=nag_wp) arrayInput/Output
Note: the second dimension of the array A must be at least N.
On entry: the n by n upper triangular matrix U.
On exit: the upper triangular matrix R.
6:     LDA – INTEGERInput
On entry: the first dimension of the array A as declared in the (sub)program from which F06QQF is called.
Constraint: LDA max1,N .
7:     CN – REAL (KIND=nag_wp) arrayOutput
On exit: the values ck, the cosines of the rotations Qk, for k=1,2,,n.
8:     SN – REAL (KIND=nag_wp) arrayOutput
On exit: the values sk, the sines of the rotations Qk, for k=1,2,,n.

6  Error Indicators and Warnings

None.

7  Accuracy

Not applicable.

8  Parallelism and Performance

Not applicable.

9  Further Comments

None.

10  Example

None.

F06QQF (PDF version)
F06 Chapter Contents
F06 Chapter Introduction
NAG Library Manual

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