CLALSA(3)
π CLALSA(3) β the Library Functions Manual page, but make it make sense π
okay so bestie, welcome to CLALSA(3) from the Library Functions Manual. We are reading the whole thing together β no skimming, no βIβll come back to it,β every array dimension is staying. π
πΈ NAME πΈ
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/clalsa.f β literally the file path, bestie. Thatβs the NAME sectionβs whole vibe.
β¨ SYNOPSIS β¨
π«Ά Functions/Subroutines π«Ά
subroutine CLALSAβ the official one-liner isCLALSA computes the SVD of the coefficient matrix in compact form. Used by sgelsd.The full synopsis signature is:
subroutine CLALSA (icompq, smlsiz, n, nrhs, b, ldb, bx, ldbx, u, ldu,
vt, k, difl, difr, z, poles, givptr, givcol, ldgcol, perm, givnum,
c, s, rwork, iwork, info)
π Function/Subroutine Documentation π
The full documentation signature, exactly as listed:
subroutine CLALSA (integer icompq, integer smlsiz, integer n, integer nrhs,
complex, dimension( ldb, * ) b, integer ldb, complex, dimension( ldbx, *
) bx, integer ldbx, real, dimension( ldu, * ) u, integer ldu, real,
dimension( ldu, * ) vt, integer, dimension( * ) k, real, dimension( ldu,
* ) difl, real, dimension( ldu, * ) difr, real, dimension( ldu, * ) z,
real, dimension( ldu, * ) poles, integer, dimension( * ) givptr,
integer, dimension( ldgcol, * ) givcol, integer ldgcol, integer,
dimension( ldgcol, * ) perm, real, dimension( ldu, * ) givnum, real,
dimension( * ) c, real, dimension( * ) s, real, dimension( * ) rwork,
integer, dimension( * ) iwork, integer info)
And the summary is: CLALSA computes the SVD of the coefficient matrix in compact form. Used by sgelsd. periodt.
π Purpose π
Okay so, CLALSA is an intermediate step in solving the least squares problem by computing the SVD of the coefficient matrix in compact form. The singular vectors are computed as products of simple orthogonal matrices. No cap.
- If
ICOMPQ = 0,CLALSAapplies the inverse of the left singular vector matrix of an upper bidiagonal matrix to the right hand side. - If
ICOMPQ = 1,CLALSAapplies the right singular vector matrix to the right hand side. - The singular vector matrices were generated in compact form by
CLALSA.
π Parameters π
ICOMPQβINTEGER. Tells us whether weβre dealing with the left or the right singular vector matrix.= 0: left singular vector matrix.= 1: right singular vector matrix.SMLSIZβINTEGER. The biggest size those subproblems can be at the bottom of the computation tree.NβINTEGER. The row and column dimensions of that upper bidiagonal matrix.NRHSβINTEGER. How many columnsBandBXhave.NRHShas to be at least 1.BβCOMPLEXarray, dimension( LDB, NRHS ). On input,Bis holding the right hand sides of the least squares problem in rows 1 throughM. On output,Bis holding the solutionXin rows 1 throughN.LDBβINTEGER. The leading dimension ofBinside the calling subprogram.LDBmust be at leastmax(1,MAX( M, N ) ).BXβCOMPLEXarray, dimension( LDBX, NRHS ). On exit, this is the result of applying the left or right singular vector matrix toB.LDBXβINTEGER. The leading dimension ofBX.UβREALarray, dimension( LDU, SMLSIZ ). On entry,Uholds the left singular vector matrices of all subproblems at the bottom level.LDUβINTEGER,LDU = > N.The leading dimension of arraysU,VT,DIFL,DIFR,POLES,GIVNUM, andZ.VTβREALarray, dimension( LDU, SMLSIZ+1 ). On entry,VT**Hholds the right singular vector matrices of all subproblems at the bottom level.KβINTEGERarray, dimension( N ). Thatβs literally all it says, bestie.DIFLβREALarray, dimension( LDU, NLVL ), whereNLVL = INT(log_2 (N/(SMLSIZ+1))) + 1.DIFRβREALarray, dimension( LDU, 2 * NLVL ). On entry,DIFL(*, I)andDIFR(*, 2 * I -1)record the distances between singular values on theI-th level and singular values on the(I -1)-th level, andDIFR(*, 2 * I)records the normalizing factors of the right singular vectors matrices of subproblems on theI-th level.ZβREALarray, dimension( LDU, NLVL ). On entry,Z(1, I)has the components of the deflation-adjusted updating row vector for subproblems on theI-th level.POLESβREALarray, dimension( LDU, 2 * NLVL ). On entry,POLES(*, 2 * I -1: 2 * I)has the new and old singular values involved in the secular equations on theI-th level.GIVPTRβINTEGERarray, dimension( N ). On entry,GIVPTR( I )records how many Givens rotations were performed on theI-th problem on the computation tree.GIVCOLβINTEGERarray, dimension( LDGCOL, 2 * NLVL ). On entry, for eachI,GIVCOL(*, 2 * I - 1: 2 * I)records where the Givens rotations were performed on theI-th level on the computation tree.LDGCOLβINTEGER,LDGCOL = > N.The leading dimension of arraysGIVCOLandPERM.PERMβINTEGERarray, dimension( LDGCOL, NLVL ). On entry,PERM(*, I)records the permutations done on theI-th level of the computation tree.GIVNUMβREALarray, dimension( LDU, 2 * NLVL ). On entry,GIVNUM(*, 2 *I -1 : 2 * I)records the C- and S-values of Givens rotations performed on theI-th level on the computation tree.CβREALarray, dimension( N ). On entry, if theI-th subproblem is not square,C( I )holds the C-value of a Givens rotation related to the right null space of theI-th subproblem.SβREALarray, dimension( N ). On entry, if theI-th subproblem is not square,S( I )holds the S-value of a Givens rotation related to the right null space of theI-th subproblem.RWORKβREALarray, dimension at leastMAX( (SMLSZ+1)*NRHS*3, N*(1+NRHS) + 2*NRHS ).IWORKβINTEGERarray, dimension(3*N).INFOβINTEGER.= 0: successful exit.< 0: ifINFO = -i, thei-th argument had an illegal value.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π§ Contributors π§
- Ming Gu and Ren-Cang Li, Computer Science Division, University of California at Berkeley, USA
- Osni Marques, LBNL/NERSC, USA
π Definition at line 263 of file clalsa.f π
Thatβs the source-code location, bestie: Definition at line 263 of file clalsa.f.
π Author π
This one is the auto-generated credit: Generated automatically by Doxygen for LAPACK from the source code.
Okay bestie, thatβs the whole page. The footer energy is LAPACK, Version 3.12.0, and the path /home/abui...RC/clalsa.f(3). Bye, ily, go be the main character of your least squares problem π
β¨π«Ά
π¦ 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