DLASD6(3)
π NAME π
okay so bestie, welcome to DLASD6(3) β this page lives in the LAPACK Library Functions Manual, and the header is pointing at /home/abui...RC/dlasd6.f(3). The actual file it's about is /home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/dlasd6.f. That's the whole NAME situation π
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine DLASD6 (icompq, nl, nr, sqre, d, vf, vl, alpha, beta, idxq,
perm, givptr, givcol, ldgcol, givnum, ldgnum, poles, difl, difr, z,
k, c, s, work, iwork, info)
DLASD6 computes the SVD of an updated upper bidiagonal matrix obtained by merging two smaller ones by appending a row. Used by sbdsdc.
π§ Function/Subroutine Documentation π§
subroutine DLASD6 (integer icompq, integer nl, integer nr, integer sqre,
double precision, dimension( * ) d, double precision, dimension( * ) vf,
double precision, dimension( * ) vl, double precision alpha, double
precision beta, integer, dimension( * ) idxq, integer, dimension( * )
perm, integer givptr, integer, dimension( ldgcol, * ) givcol, integer
ldgcol, double precision, dimension( ldgnum, * ) givnum, integer ldgnum,
double precision, dimension( ldgnum, * ) poles, double precision,
dimension( * ) difl, double precision, dimension( * ) difr, double
precision, dimension( * ) z, integer k, double precision c, double
precision s, double precision, dimension( * ) work, integer, dimension(
* ) iwork, integer info)
Again for the people in the back: it computes the SVD of an updated upper bidiagonal matrix obtained by merging two smaller ones by appending a row. Used by sbdsdc.
π Purpose: π
DLASD6 computes the SVD of an updated upper bidiagonal matrix B obtained by merging two smaller ones by appending a row. This routine is used only for the problem which requires all singular values and optionally singular vector matrices in factored form. B is an N-by-M matrix with N = NL + NR + 1 and M = N + SQRE. A related subroutine, DLASD1, handles the case in which all singular values and singular vectors of the bidiagonal matrix are desired.
DLASD6 computes the SVD as follows:
( D1(in) 0 0 0 )
B = U(in) * ( Z1**T a Z2**T b ) * VT(in)
( 0 0 D2(in) 0 )
= U(out) * ( D(out) 0) * VT(out)
where Z**T = (Z1**T a Z2**T b) = u**T VT**T, and u is a vector of dimension M with ALPHA and BETA in the NL+1 and NL+2 th entries and zeros elsewhere; and the entry b is empty if SQRE = 0.
The singular values of B can be computed using D1, D2, the first components of all the right singular vectors of the lower block, and the last components of all the right singular vectors of the upper block. These components are stored and updated in VF and VL, respectively, in DLASD6. Hence U and VT are not explicitly referenced.
The singular values are stored in D. The algorithm consists of two stages:
- The first stage consists of deflating the size of the problem when there are multiple singular values or if there is a zero in the
Zvector. For each such occurrence the dimension of the secular equation problem is reduced by one. This stage is performed by the routineDLASD7. - The second stage consists of calculating the updated singular values. This is done by finding the roots of the secular equation via the routine
DLASD4(as called byDLASD8). This routine also updatesVFandVLand computes the distances between the updated singular values and the old singular values.
DLASD6 is called from DLASDA.
π Parameters π
ICOMPQβINTEGER. Specifies whether singular vectors are to be computed in factored form:= 0: Compute singular values only.= 1: Compute singular vectors in factored form as well.
NLβINTEGER. The row dimension of the upper block.NL >= 1.NRβINTEGER. The row dimension of the lower block.NR >= 1.SQREβINTEGER.= 0: the lower block is anNR-by-NRsquare matrix.= 1: the lower block is anNR-by-(NR+1)rectangular matrix.
The bidiagonal matrix has row dimension N = NL + NR + 1, and column dimension M = N + SQRE.
DβDOUBLE PRECISIONarray, dimension( NL+NR+1 ). On entryD(1:NL,1:NL)contains the singular values of the upper block, andD(NL+2:N)contains the singular values of the lower block. On exitD(1:N)contains the singular values of the modified matrix.VFβDOUBLE PRECISIONarray, dimension( M ). On entry,VF(1:NL+1)contains the first components of all right singular vectors of the upper block; andVF(NL+2:M)contains the first components of all right singular vectors of the lower block. On exit,VFcontains the first components of all right singular vectors of the bidiagonal matrix.VLβDOUBLE PRECISIONarray, dimension( M ). On entry,VL(1:NL+1)contains the last components of all right singular vectors of the upper block; andVL(NL+2:M)contains the last components of all right singular vectors of the lower block. On exit,VLcontains the last components of all right singular vectors of the bidiagonal matrix.ALPHAβDOUBLE PRECISION. Contains the diagonal element associated with the added row.BETAβDOUBLE PRECISION. Contains the off-diagonal element associated with the added row.IDXQβINTEGERarray, dimension( N ). This contains the permutation which will reintegrate the subproblem just solved back into sorted order, i.e.D( IDXQ( I = 1, N ) )will be in ascending order.PERMβINTEGERarray, dimension( N ). The permutations (from deflation and sorting) to be applied to each block. Not referenced ifICOMPQ = 0.GIVPTRβINTEGER. The number of Givens rotations which took place in this subproblem. Not referenced ifICOMPQ = 0.GIVCOLβINTEGERarray, dimension( LDGCOL, 2 ). Each pair of numbers indicates a pair of columns to take place in a Givens rotation. Not referenced ifICOMPQ = 0.LDGCOLβINTEGER. The leading dimension ofGIVCOL, must be at leastN.GIVNUMβDOUBLE PRECISIONarray, dimension( LDGNUM, 2 ). Each number indicates theCorSvalue to be used in the corresponding Givens rotation. Not referenced ifICOMPQ = 0.LDGNUMβINTEGER. The leading dimension ofGIVNUMandPOLES, must be at leastN.POLESβDOUBLE PRECISIONarray, dimension( LDGNUM, 2 ). On exit,POLES(1,*)is an array containing the new singular values obtained from solving the secular equation, andPOLES(2,*)is an array containing the poles in the secular equation. Not referenced ifICOMPQ = 0.DIFLβDOUBLE PRECISIONarray, dimension( N ). On exit,DIFL(I)is the distance betweenI-th updated (undeflated) singular value and theI-th (undeflated) old singular value.DIFRβDOUBLE PRECISIONarray, dimension( LDDIFR, 2 )ifICOMPQ = 1and dimension( K )ifICOMPQ = 0. On exit,DIFR(I,1) = D(I) - DSIGMA(I+1),DIFR(K,1)is not defined and will not be referenced. IfICOMPQ = 1,DIFR(1:K,2)is an array containing the normalizing factors for the right singular vector matrix. SeeDLASD8for details onDIFLandDIFR.ZβDOUBLE PRECISIONarray, dimension( M ). The first elements of this array contain the components of the deflation-adjusted updating row vector.KβINTEGER. Contains the dimension of the non-deflated matrix, This is the order of the related secular equation.1 <= K <=N.CβDOUBLE PRECISION.Ccontains garbage ifSQRE =0and theC-value of a Givens rotation related to the right null space ifSQRE = 1.SβDOUBLE PRECISION.Scontains garbage ifSQRE =0and theS-value of a Givens rotation related to the right null space ifSQRE = 1.WORKβDOUBLE PRECISIONarray, dimension( 4 * M ).IWORKβINTEGERarray, dimension( 3 * N ).INFOβINTEGER.= 0: successful exit.< 0: ifINFO = -i, thei-th argument had an illegal value.> 0: ifINFO = 1, a singular value did not converge.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π«Ά Contributors: π«Ά
Ming Gu and Huan Ren, Computer Science Division, University of California at Berkeley, USA
Definition at line 309 of file dlasd6.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
okay bestie that's the whole page π the footer vibe is LAPACK Version 3.12.0 and the path /home/abui...RC/dlasd6.f(3) β iconic, no cap π
π¦ 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