f06fsf generates details of a real elementary reflection
(Householder matrix),
, such that
where is orthogonal, and are real scalars, and is an -element real vector.
is given in the form
where is an -element real vector and is a real scalar. (This form is compatible with that used by LINPACK.)
If the elements of are all zero, or if the elements of are all less than in absolute value, then is set to and can be taken to be the unit matrix. Otherwise always lies in the range .
4
References
None.
5
Arguments
1: – IntegerInput
On entry: , the number of elements in and .
2: – Real (Kind=nag_wp)Input/Output
On entry: the scalar .
On exit: the scalar .
3: – Real (Kind=nag_wp) arrayInput/Output
Note: the dimension of the array x
must be at least
.
On entry: the -element vector .
must be stored in , for .
On exit: the referenced elements are overwritten by details of the real elementary reflection.
4: – IntegerInput
On entry: the increment in the subscripts of x between successive elements of .
Constraint:
.
5: – Real (Kind=nag_wp)Input
On entry: the value .
If tol is not in the range , the value is used for .
6: – Real (Kind=nag_wp)Output
On exit: the scalar .
6
Error Indicators and Warnings
None.
7
Accuracy
Not applicable.
8
Parallelism and Performance
f06fsf makes calls to BLAS and/or LAPACK routines, which may be threaded within the vendor library used by this implementation. Consult the documentation for the vendor library for further information.
Please consult the X06 Chapter Introduction for information on how to control and interrogate the OpenMP environment used within this routine. Please also consult the Users' Note for your implementation for any additional implementation-specific information.