naginterfaces.library.lapackeig.zgglse¶
- naginterfaces.library.lapackeig.zgglse(n, a, b, c, d)[source]¶
zgglse
solves a complex linear equality-constrained least squares problem.For full information please refer to the NAG Library document for f08zn
https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/f08/f08znf.html
- Parameters
- nint
, the number of columns of the matrices and .
- acomplex, array-like, shape
The matrix .
- bcomplex, array-like, shape
The matrix .
- ccomplex, array-like, shape
The right-hand side vector for the least squares part of the LSE problem.
- dcomplex, array-like, shape
The right-hand side vector for the equality constraints.
- Returns
- acomplex, ndarray, shape
is overwritten.
- bcomplex, ndarray, shape
is overwritten.
- ccomplex, ndarray, shape
The residual sum of squares for the solution vector is given by the sum of squares of elements ; the remaining elements are overwritten.
- dcomplex, ndarray, shape
is overwritten.
- xcomplex, ndarray, shape
The solution vector of the LSE 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 part of the upper trapezoidal factor associated with in the generalized factorization of the pair is singular, so that the rank of the matrix () comprising the rows of and is less than ; the least squares solutions could not be computed.
- Notes
zgglse
solves the complex linear equality-constrained least squares (LSE) problemwhere is an matrix, is a matrix, is an element vector and is a element vector. It is assumed that , and , where . These conditions ensure that the LSE problem has a unique solution, which is obtained using a generalized factorization of the matrices and .
- 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
Eldèn, L, 1980, Perturbation theory for the least squares problem with linear equality constraints, SIAM J. Numer. Anal. (17), 338–350