/home/abui.../cgesvdx.f(3)
π cgesvdx.f(3) β Library Functions Manual π
okay so bestie, welcome to the Library Functions Manual page for /home/abui.../cgesvdx.f(3) β¨ this is the one about CGESVDX, and it's lowkey iconic.
πΈ NAME
/home/abui.../cgesvdx.f(3) β this page is for this file path, bestie:
/home/abuild/rpmbuild/BUILD/lapack-
static-3.12.0-build/lapack-3.12.0/SRC/cgesvdx.f
β¨ SYNOPSIS
Functions/Subroutines
subroutine CGESVDX (jobu, jobvt, range, m, n, a, lda, vl, vu, il, iu,
ns, s, u, ldu, vt, ldvt, work, lwork, rwork, iwork, info)
CGESVDX computes the singular value decomposition (SVD) for GE matrices π
π Function/Subroutine Documentation
subroutine CGESVDX (character jobu, character jobvt, character range,
integer m, integer n, complex, dimension( lda, * ) a, integer lda, real
vl, real vu, integer il, integer iu, integer ns, real, dimension( * ) s,
complex, dimension( ldu, * ) u, integer ldu, complex, dimension( ldvt, *
) vt, integer ldvt, complex, dimension( * ) work, integer lwork, real,
dimension( * ) rwork, integer, dimension( * ) iwork, integer info)
CGESVDX computes the singular value decomposition (SVD) for GE matrices π
π Purpose
okay so CGESVDX computes the SVD of a complex M-by-N matrix A, and it can optionally compute the left and/or right singular vectors. The SVD is written like this:
A = U * SIGMA * transpose(V)
where SIGMA is an M-by-N matrix that's zero except for its min(m,n) diagonal elements, U is an M-by-M unitary matrix, and V is an N-by-N unitary matrix. The diagonal elements of SIGMA are the singular values of A; they are real and non-negative, and they come back in descending order. The first min(m,n) columns of U and V are the left and right singular vectors of A.
CGESVDX uses an eigenvalue problem to get the SVD, which is the whole reason it can compute a subset of singular values and vectors. See SBDSVDX for details π
Note that the routine returns V**T, not V. periodt.
πΈ Parameters
JOBUβCHARACTER*1. Specifies options for computing all or part of the matrixU:'V': the firstmin(m,n)columns ofU(the left singular vectors) or as specified byRANGEare returned in the arrayU;'N': no columns ofU(no left singular vectors) are computed.
JOBVTβCHARACTER*1. Specifies options for computing all or part of the matrixV**T:'V': the firstmin(m,n)rows ofV**T(the right singular vectors) or as specified byRANGEare returned in the arrayVT;'N': no rows ofV**T(no right singular vectors) are computed.
RANGEβCHARACTER*1.'A': all singular values will be found.'V': all singular values in the half-open interval(VL,VU]will be found.'I': theIL-th throughIU-th singular values will be found.
MβINTEGER. The number of rows of the input matrixA.M >= 0.NβINTEGER. The number of columns of the input matrixA.N >= 0.AβCOMPLEXarray, dimension(LDA,N). On entry, theM-by-NmatrixA. On exit, the contents ofAare destroyed. πLDAβINTEGER. The leading dimension of the arrayA.LDA >= max(1,M).VLβREAL. IfRANGE='V', the lower bound of the interval to be searched for singular values.VU > VL. Not referenced ifRANGE = 'A'or'I'.VUβREAL. IfRANGE='V', the upper bound of the interval to be searched for singular values.VU > VL. Not referenced ifRANGE = 'A'or'I'.ILβINTEGER. IfRANGE='I', the index of the smallest singular value to be returned.1 <= IL <= IU <= min(M,N), ifmin(M,N) > 0. Not referenced ifRANGE = 'A'or'V'.IUβINTEGER. IfRANGE='I', the index of the largest singular value to be returned.1 <= IL <= IU <= min(M,N), ifmin(M,N) > 0. Not referenced ifRANGE = 'A'or'V'.NSβINTEGER. The total number of singular values found,0 <= NS <= min(M,N). IfRANGE = 'A',NS = min(M,N); ifRANGE = 'I',NS = IU-IL+1.SβREALarray, dimension(min(M,N)). The singular values ofA, sorted so thatS(i) >= S(i+1).UβCOMPLEXarray, dimension(LDU,UCOL). IfJOBU = 'V',Ucontains columns ofU(the left singular vectors, stored columnwise) as specified byRANGE; ifJOBU = 'N',Uis not referenced. Note: the user must ensure thatUCOL >= NS; ifRANGE = 'V', the exact value ofNSis not known in advance and an upper bound must be used. π«ΆLDUβINTEGER. The leading dimension of the arrayU.LDU >= 1; ifJOBU = 'V',LDU >= M.VTβCOMPLEXarray, dimension(LDVT,N). IfJOBVT = 'V',VTcontains the rows ofV**T(the right singular vectors, stored rowwise) as specified byRANGE; ifJOBVT = 'N',VTis not referenced. Note: the user must ensure thatLDVT >= NS; ifRANGE = 'V', the exact value ofNSis not known in advance and an upper bound must be used. πLDVTβINTEGER. The leading dimension of the arrayVT.LDVT >= 1; ifJOBVT = 'V',LDVT >= NS(see above).WORKβCOMPLEXarray, dimension(MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK; π₯LWORKβINTEGER. The dimension of the arrayWORK.LWORK >= MAX(1,MIN(M,N)*(MIN(M,N)+4))for the paths (see comments inside the code):PATH 1(Mmuch larger thanN)PATH 1t(Nmuch larger thanM)
LWORK >= MAX(1,MIN(M,N)*2+MAX(M,N)) for the other paths. For good performance, LWORK should generally be larger.
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.
RWORKβREALarray, dimension(MAX(1,LRWORK)).LRWORK >= MIN(M,N)*(MIN(M,N)*2+15*MIN(M,N)).IWORKβINTEGERarray, dimension(12*MIN(M,N)). IfINFO = 0, the firstNSelements ofIWORKare zero. IfINFO > 0, thenIWORKcontains the indices of the eigenvectors that failed to converge inSBDSVDX/SSTEVX. πINFOβINTEGER.= 0: successful exit< 0: ifINFO = -i, thei-th argument had an illegal value> 0: ifINFO = i, thenieigenvectors failed to converge inSBDSVDX/SSTEVX. ifINFO = N*2 + 1, an internal error occurred inSBDSVDX
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 267 of file cgesvdx.f. β¨
π« Author
Generated automatically by Doxygen for LAPACK from the source code.
okay that's the whole vibe check, bestie π«Ά this page is from LAPACK Version 3.12.0, and it lives at /home/abui.../cgesvdx.f(3) β slay π
π¦ 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