/home/abui.../dgesvdx.f(3)
π NAME
so the header up top says /home/abui.../dgesvdx.f(3) and this whole thing lives in the Library Functions Manual β bestie, we're looking at the source file /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/dgesvdx.f, which is giving "deep in the LAPACK source tree" energy π«Ά
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine DGESVDX (jobu, jobvt, range, m, n, a, lda, vl, vu, il, iu,
ns, s, u, ldu, vt, ldvt, work, lwork, iwork, info)
tl;dr: DGESVDX computes the singular value decomposition (SVD) for GE matrices. iconic. π₯
π FUNCTION/SUBROUTINE DOCUMENTATION π
subroutine DGESVDX (character jobu, character jobvt, character range,
integer m, integer n, double precision, dimension( lda, * ) a, integer
lda, double precision vl, double precision vu, integer il, integer iu,
integer ns, double precision, dimension( * ) s, double precision,
dimension( ldu, * ) u, integer ldu, double precision, dimension( ldvt, *
) vt, integer ldvt, double precision, dimension( * ) work, integer
lwork, integer, dimension( * ) iwork, integer info)
DGESVDX computes the singular value decomposition (SVD) for GE matrices β¨
πΈ Purpose πΈ
okay so, for real:
DGESVDX computes the singular value decomposition (SVD) of a real M-by-N matrix A, optionally computing the left and/or right singular vectors. The SVD is written
A = U * SIGMA * transpose(V)
where SIGMA is an M-by-N matrix which is zero except for its min(m,n) diagonal elements, U is an M-by-M orthogonal matrix, and V is an N-by-N orthogonal matrix. The diagonal elements of SIGMA are the singular values of A β they are real and non-negative, and are returned in descending order. The first min(m,n) columns of U and V are the left and right singular vectors of A.
DGESVDX uses an eigenvalue problem for obtaining the SVD, which allows for the computation of a subset of singular values and vectors. See DBDSVDX for details.
β οΈ note that the routine returnsV**T, notV. yes, transposed. don't come for me, that's just how it is π
π Parameters π
JOBUβJOBUisCHARACTER*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βJOBVTisCHARACTER*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βRANGEisCHARACTER*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βMisINTEGER. The number of rows of the input matrixA.M >= 0.NβNisINTEGER. The number of columns of the input matrixA.N >= 0.AβAisDOUBLE PRECISIONarray, dimension(LDA,N). On entry, the M-by-N matrixA. On exit, the contents ofAare destroyed. π she ate and left no crumbs β your matrix is gone, that's the deal.LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,M).VLβVLisDOUBLE PRECISION. IfRANGE='V', the lower bound of the interval to be searched for singular values.VU > VL. Not referenced ifRANGE = 'A'or'I'.VUβVUisDOUBLE PRECISION. IfRANGE='V', the upper bound of the interval to be searched for singular values.VU > VL. Not referenced ifRANGE = 'A'or'I'.ILβILisINTEGER. 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βIUisINTEGER. 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βNSisINTEGER. 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βSisDOUBLE PRECISIONarray, dimension(min(M,N)). The singular values ofA, sorted so thatS(i) >= S(i+1). descending order, bestie, always descending πUβUisDOUBLE PRECISIONarray, 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. π plan ahead, gorl.
LDUβLDUisINTEGER. The leading dimension of the arrayU.LDU >= 1; ifJOBU = 'V',LDU >= M.VTβVTisDOUBLE PRECISIONarray, 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. again. same warning. it's giving "read the room" π
LDVTβLDVTisINTEGER. The leading dimension of the arrayVT.LDVT >= 1; ifJOBVT = 'V',LDVT >= NS(see above).WORKβWORKisDOUBLE PRECISIONarray, dimension(MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβLWORKisINTEGER. 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(M much larger than N)PATH 1t(N much larger than M)
LWORK >= MAX(1,MIN(M,N)*2+MAX(M,N)) for the other paths. For good performance, LWORK should generally be larger. highkey always size up, it's the main character move π 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.
IWORKβIWORKisINTEGERarray, dimension(12*MIN(M,N)). IfINFO = 0, the firstNSelements ofIWORKare zero. IfINFO > 0, thenIWORKcontains the indices of the eigenvectors that failed to converge inDBDSVDX/DSTEVX. lowkey the receipts of what went wrong π§ΎINFOβINFOisINTEGER:= 0: successful exit β¨ slay< 0: ifINFO = -i, the i-th argument had an illegal value> 0: ifINFO = i, then i eigenvectors failed to converge inDBDSVDX/DSTEVX. ifINFO = N*2 + 1, an internal error occurred inDBDSVDX
π¦ Author π¦
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
β Definition β
Definition at line 260 of file dgesvdx.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code. no cap, the robot wrote this part π€π
π sign-off π
that's the whole page bestie β brought to you by LAPACK, Version 3.12.0, and yeah the footer path is /home/abui.../dgesvdx.f(3) in case you need to cite your sources π
β¨π«Ά
π¦ 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