nag_zggglm (f08zpc) solves a complex general Gauss–Markov linear (least squares) model problem.
nag_zggglm (f08zpc) solves the complex general Gauss–Markov linear model (GLM) problem
where
is an
by
matrix,
is an
by
matrix and
is an
element vector. It is assumed that
,
and
, where
. Under these assumptions, the problem has a unique solution
and a minimal
-norm solution
, which is obtained using a generalized
factorization of the matrices
and
.
In particular, if the matrix
is square and nonsingular, then the GLM problem is equivalent to the weighted linear least squares problem
Anderson E, Bai Z, Bischof C, Blackford S, Demmel J, Dongarra J J, Du Croz J J, Greenbaum A, Hammarling S, McKenney A and Sorensen D (1999) LAPACK Users' Guide (3rd Edition) SIAM, Philadelphia
- NE_ALLOC_FAIL
Dynamic memory allocation failed.
- NE_BAD_PARAM
On entry, argument had an illegal value.
- NE_INT
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
- NE_INT_2
On entry, and .
Constraint: .
On entry, and .
Constraint: .
On entry, and .
Constraint: .
On entry, and .
Constraint: .
On entry, and .
Constraint: .
- NE_INT_3
On entry, , and .
Constraint: .
- NE_INTERNAL_ERROR
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact
NAG for assistance.
- NE_SINGULAR
The bottom by part of the upper trapezoidal factor associated with in the generalised factorization of the pair is singular, so that ; the least squares solutions could not be computed.
The by part of the upper trapezoidal factor associated with in the generalised factorization of the pair is singular, so that ; the least squares solutions could not be computed.
For an error analysis, see
Anderson et al. (1992). See also Section 4.6 of
Anderson et al. (1999).
This example solves the weighted least squares problem
where
and