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

NAG Library Routine Document

F06HRF

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
    9  Example

1  Purpose

F06HRF generates a complex elementary reflection.

2  Specification

SUBROUTINE F06HRF ( N, ALPHA, X, INCX, TOL, THETA)
INTEGER  N, INCX
REAL (KIND=nag_wp)  TOL
COMPLEX (KIND=nag_wp)  ALPHA, X(*), THETA

3  Description

F06HRF generates details of a complex elementary reflection (Householder matrix), P, such that
P α x = β 0
where P is unitary, α is a complex scalar, β is a real scalar, and x is an n-element complex vector.
P is given in the form
P=I-γ ζ z ζ zH ,
where z is an n-element complex vector, γ is a complex scalar such that Reγ=1, and ζ is a real scalar. γ and ζ are returned in a single complex value θ=ζ,Imγ. Thus ζ=Reθ and γ=1,Imθ.
If x is such that
maxRexi,Imximaxtol,εmaxReα,Imα,
where ε is the machine precision and tol is a user-supplied tolerance, then:
Otherwise 1Reθ2.

4  References

None.

5  Parameters

1:     N – INTEGERInput
On entry: n, the number of elements in x and z.
2:     ALPHA – COMPLEX (KIND=nag_wp)Input/Output
On entry: the scalar α.
On exit: the scalar β.
3:     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 n-element vector x. xi must be stored in X1+i-1×INCX, for i=1,2,,N.
Intermediate elements of X are not referenced.
On exit: the referenced elements are overwritten by details of the complex elementary reflection.
4:     INCX – INTEGERInput
On entry: the increment in the subscripts of X between successive elements of x.
Constraint: INCX>0.
5:     TOL – REAL (KIND=nag_wp)Input
On entry: the value tol.
6:     THETA – COMPLEX (KIND=nag_wp)Output
On exit: the scalar θ.

6  Error Indicators and Warnings

None.

7  Accuracy

Not applicable.

8  Further Comments

None.

9  Example

None.

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

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