naginterfaces.library.lapackeig.zggglm¶
- naginterfaces.library.lapackeig.zggglm(p, a, b, d)[source]¶
zggglm
solves a complex general Gauss–Markov linear (least squares) model problem.For full information please refer to the NAG Library document for f08zp
https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/f08/f08zpf.html
- Parameters
- pint
, the number of columns of the matrix .
- acomplex, array-like, shape
The matrix .
- bcomplex, array-like, shape
The matrix .
- dcomplex, array-like, shape
The left-hand side vector of the GLM equation.
- Returns
- acomplex, ndarray, shape
is overwritten.
- bcomplex, ndarray, shape
is overwritten.
- dcomplex, ndarray, shape
is overwritten.
- xcomplex, ndarray, shape
The solution vector of the GLM problem.
- ycomplex, ndarray, shape
The solution vector of the GLM problem.
- Raises
- NagValueError
- (errno )
On entry, error in parameter .
Constraint: .
- (errno )
On entry, error in parameter .
Constraint: .
- (errno )
On entry, error in parameter .
Constraint: .
- (errno )
The upper triangular factor associated with in the generalized factorization of the pair is singular, so that ; the least squares solution could not be computed.
- (errno )
The bottom part of the upper trapezoidal factor associated with in the generalized factorization of the pair is singular, so that ; the least squares solutions could not be computed.
- Notes
zggglm
solves the complex general Gauss–Markov linear model (GLM) problemwhere is an matrix, is an 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
- References
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
Anderson, E, Bai, Z and Dongarra, J, 1992, Generalized factorization and its applications, Linear Algebra Appl. (Volume 162–164), 243–271