DGELST(3)
π¦ DGELST(3) π¦
okay so bestie, welcome to the dgelst.f page from the Library Functions Manual π
this is the whole DGELST situation, and itβs giving βFortran math main character energyβ fr fr.
π NAME π
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/dgelst.f
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine DGELST (trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info)
DGELST solves overdetermined or underdetermined systems for GE matrices using QR or LQ factorization with compact WY representation of Q. periodt π
πΈ Function/Subroutine Documentation πΈ
subroutine DGELST (character trans, integer m, integer n, integer nrhs,
double precision, dimension( lda, * ) a, integer lda, double precision,
dimension( ldb, * ) b, integer ldb, double precision, dimension( * )
work, integer lwork, integer info)
DGELST solves overdetermined or underdetermined systems for GE matrices using QR or LQ factorization with compact WY representation of Q. π«
π Purpose: π
DGELST solves overdetermined or underdetermined real linear systems involving an M-by-N matrix A, or its transpose, using a QR or LQ factorization of A with compact WY representation of Q. It is assumed that A has full rank β no cap, thatβs literally the setup π«Ά.
The following options are provided:
- If
TRANS = 'N'andm >= n: find the least squares solution of an overdetermined system, i.e., solve the least squares problemminimize || B - A*X ||. - If
TRANS = 'N'andm < n: find the minimum norm solution of an underdetermined systemA * X = B. - If
TRANS = 'T'andm >= n: find the minimum norm solution of an underdetermined systemA**T * X = B. - If
TRANS = 'T'andm < n: find the least squares solution of an overdetermined system, i.e., solve the least squares problemminimize || B - A**T * X ||.
Several right hand side vectors b and solution vectors x can be handled in a single call; they are stored as the columns of the M-by-NRHS right hand side matrix B and the N-by-NRHS solution matrix X. iconic behavior honestly π
π Parameters π
π TRANS
TRANSβTRANS is CHARACTER*1= 'N': the linear system involves A;= 'T': the linear system involves A**T.
π M
MβM is INTEGER. The number of rows of the matrixA.M >= 0.
π N
NβN is INTEGER. The number of columns of the matrixA.N >= 0.
π NRHS
NRHSβNRHS is INTEGER. The number of right hand sides, i.e., the number of columns of the matricesBandX.NRHS >=0.
π A
AβA is DOUBLE PRECISION array, dimension (LDA,N). On entry, theM-by-NmatrixA. On exit:- if
M >= N,Ais overwritten by details of its QR factorization as returned byDGEQRT; - if
M < N,Ais overwritten by details of its LQ factorization as returned byDGELQT.
- if
π LDA
LDAβLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,M).
π B
BβB is DOUBLE PRECISION array, dimension (LDB,NRHS). On entry, the matrixBof right hand side vectors, stored columnwise;BisM-by-NRHSifTRANS = 'N', orN-by-NRHSifTRANS = 'T'. On exit, ifINFO = 0,Bis overwritten by the solution vectors, stored columnwise:- if
TRANS = 'N'andm >= n, rows 1 to n ofBcontain the least squares solution vectors; the residual sum of squares for the solution in each column is given by the sum of squares of elementsN+1toMin that column; - if
TRANS = 'N'andm < n, rows 1 toNofBcontain the minimum norm solution vectors; - if
TRANS = 'T'andm >= n, rows 1 toMofBcontain the minimum norm solution vectors; - if
TRANS = 'T'andm < n, rows 1 toMofBcontain the least squares solution vectors; the residual sum of squares for the solution in each column is given by the sum of squares of elementsM+1toNin that column.
- if
π LDB
LDBβLDB is INTEGER. The leading dimension of the arrayB.LDB >= MAX(1,M,N).
π WORK
WORKβWORK is DOUBLE PRECISION array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.
π LWORK
LWORKβLWORK is INTEGER. The dimension of the arrayWORK.LWORK >= max( 1, MN + max( MN, NRHS ) ).For optimal performance,LWORK >= max( 1, (MN + max( MN, NRHS ))*NB ).whereMN = min(M,N)andNBis the optimum block size.
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
INFOβINFO is INTEGER= 0: successful exit< 0: ifINFO = -i, the i-th argument had an illegal value> 0: ifINFO = i, the i-th diagonal element of the triangular factor ofAis zero, so thatAdoes not have full rank; the least squares solution could not be computed.
β οΈ bestie, that INFO > 0 case is the βA is not full rankβ situation β the least squares solution could not be computed. important important important π
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Contributors:
- November 2022, Igor Kozachenko, Computer Science Division, University of California, Berkeley
π Definition at line 192 of file dgelst.f.
π Author (generated) π
Generated automatically by Doxygen for LAPACK from the source code. π§
okay thatβs the whole page, bestie β signing off with LAPACK Version 3.12.0 and the footer path /home/abui...RC/dgelst.f(3) β¨π
π¦ 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