SGGLSE(3)
okay so bestie, welcome to SGGLSE(3) β a Library Functions Manual page β and it's giving sgglse.f main character energy. β¨
π NAME π
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/sgglse.f
that's the source file this page is serving, periodt. π
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
subroutine SGGLSE (m, n, p, a, lda, b, ldb, c, d, x, work, lwork, info)β SGGLSE solves overdetermined or underdetermined systems for OTHER matrices
π Function/Subroutine Documentation π
the full signature is:
subroutine SGGLSE (integer m, integer n, integer p, real, dimension( lda, *
) a, integer lda, real, dimension( ldb, * ) b, integer ldb, real,
dimension( * ) c, real, dimension( * ) d, real, dimension( * ) x, real,
dimension( * ) work, integer lwork, integer info)
SGGLSE solves overdetermined or underdetermined systems for OTHER matrices.
πΈ Purpose πΈ
okay so SGGLSE solves the linear equality-constrained least squares (LSE) problem:
minimize || c - A*x ||_2 subject to B*x = d
where A is an M-by-N matrix, B is a P-by-N matrix, c is a given M-vector, and d is a given P-vector. It is assumed that P <= N <= M+P, and
rank(B) = P and rank( (A) ) = N.
( (B) )
These conditions ensure that the LSE problem has a unique solution, which is obtained using a generalized RQ factorization of the matrices (B, A) given by
B = (0 R)*Q, A = Z*T*Q.
π¦ Parameters π¦
MβMisINTEGER. The number of rows of the matrixA.M >= 0.NβNisINTEGER. The number of columns of the matricesAandB.N >= 0.PβPisINTEGER. The number of rows of the matrixB.0 <= P <= N <= M+P.AβAisREALarray, dimension(LDA,N). On entry, theM-by-NmatrixA. On exit, the elements on and above the diagonal of the array contain themin(M,N)-by-Nupper trapezoidal matrixT.LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,M).BβBisREALarray, dimension(LDB,N). On entry, theP-by-NmatrixB. On exit, the upper triangle of the subarrayB(1:P,N-P+1:N)contains theP-by-Pupper triangular matrixR.LDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,P).CβCisREALarray, dimension(M). On entry,Ccontains the right hand side vector for the least squares part of the LSE problem. On exit, the residual sum of squares for the solution is given by the sum of squares of elementsN-P+1toMof vectorC.DβDisREALarray, dimension(P). On entry,Dcontains the right hand side vector for the constrained equation. On exit,Dis destroyed. πXβXisREALarray, dimension(N). On exit,Xis the solution of the LSE problem. slay.WORKβWORKisREALarray, dimension(MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβLWORKisINTEGER. The dimension of the arrayWORK.LWORK >= max(1,M+N+P). For optimum performanceLWORK >= P+min(M,N)+max(M,N)*NB, whereNBis an upper bound for the optimal blocksizes forSGEQRF,SGERQF,SORMQRandSORMRQ.
If LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of the WORK array, returns this value as the first entry of the WORK array, and no error message related to LWORK is issued by XERBLA.
INFOβINFOisINTEGER.= 0: successful exit.< 0: ifINFO = -i, thei-th argument had an illegal value.= 1: the upper triangular factorRassociated withBin the generalized RQ factorization of the pair(B, A)is singular, so thatrank(B) < P; the least squares solution could not be computed.= 2: the(N-P)by(N-P)part of the upper trapezoidal factorTassociated withAin the generalized RQ factorization of the pair(B, A)is singular, so that
rank( (A) ) < N; the least squares solution could not
( (B) )
be computed.
bestie, ifINFOis1or2, the solution is not being computed β that's a hard stop, not a vibe. π«Ά
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 178 of file sgglse.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
mwah π that's the whole page, bestie β LAPACK Version 3.12.0, footer path /home/abui...RC/sgglse.f(3). no cap, you got this. π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms