SRC/dlasd1.f(3)
π NAME π
SRC/dlasd1.f β okay bestie, this oneβs from the Library Functions Manual and itβs giving βsubroutine with main character energy.β π
β¨ SYNOPSIS β¨
Functions/Subroutines
subroutine dlasd1 (nl, nr, sqre, d, alpha, beta, u, ldu, vt, ldvt, idxq,
iwork, work, info)
DLASD1 computes the SVD of an upper bidiagonal matrix B of the specified size. Used by sbdsdc.
π«Ά Function/Subroutine Documentation π«Ά
subroutine dlasd1
subroutine dlasd1 (integer nl, integer nr, integer sqre, double precision,
dimension( * ) d, double precision alpha, double precision beta, double
precision, dimension( ldu, * ) u, integer ldu, double precision,
dimension( ldvt, * ) vt, integer ldvt, integer, dimension( * ) idxq,
integer, dimension( * ) iwork, double precision, dimension( * ) work,
integer info)
DLASD1 computes the SVD of an upper bidiagonal matrix B of the specified size. Used by sbdsdc.
π― Purpose π―
Okay so hereβs the whole vibe: DLASD1 computes the SVD of an upper bidiagonal N-by-M matrix B, where N = NL + NR + 1 and M = N + SQRE. And yes, DLASD1 is called from DLASD0. π«
A related subroutine DLASD7 handles the case in which the singular values (and the singular vectors in factored form) are desired.
DLASD1 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 left singular vectors of the original matrix are stored in U, and the transpose of the right singular vectors are stored in VT, and the singular values are in D. The algorithm consists of three stages:
- The first stage consists of deflating the size of the problem when there are multiple singular values or when there are zeros in the
Zvector. For each such occurrence the dimension of the secular equation problem is reduced by one. This stage is performed by the routineDLASD2. - The second stage consists of calculating the updated singular values. This is done by finding the square roots of the roots of the secular equation via the routine
DLASD4(as called byDLASD3). This routine also calculates the singular vectors of the current problem. - The final stage consists of computing the updated singular vectors directly using the updated singular values. The singular vectors for the current problem are multiplied with the singular vectors from the overall problem.
π Parameters π
NLβNL is INTEGERβ the row dimension of the upper block.NL >= 1.NRβNR is INTEGERβ the row dimension of the lower block.NR >= 1.SQREβSQRE is 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 dimensionN = NL + NR + 1, and column dimensionM = N + SQRE.DβD is DOUBLE PRECISION array, dimension (N = 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.ALPHAβALPHA is DOUBLE PRECISIONβ contains the diagonal element associated with the added row.BETAβBETA is DOUBLE PRECISIONβ contains the off-diagonal element associated with the added row.UβU is DOUBLE PRECISION array, dimension(LDU,N)β on entryU(1:NL, 1:NL)contains the left singular vectors of the upper block;U(NL+2:N, NL+2:N)contains the left singular vectors of the lower block. On exitUcontains the left singular vectors of the bidiagonal matrix.LDUβLDU is INTEGERβ the leading dimension of the arrayU.LDU >= max( 1, N ).VTβVT is DOUBLE PRECISION array, dimension(LDVT,M)whereM = N + SQRE. On entryVT(1:NL+1, 1:NL+1)**Tcontains the right singular vectors of the upper block;VT(NL+2:M, NL+2:M)**Tcontains the right singular vectors of the lower block. On exitVT**Tcontains the right singular vectors of the bidiagonal matrix.LDVTβLDVT is INTEGERβ the leading dimension of the arrayVT.LDVT >= max( 1, M ).IDXQβIDXQ is INTEGER array, 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.IWORKβIWORK is INTEGER array, dimension( 4 * N ).WORKβWORK is DOUBLE PRECISION array, dimension( 3*M**2 + 2*M ).INFOβINFO is 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 202 of file dlasd1.f. β
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
okay bestie, thatβs the whole gorgeous little page β and the cute sign-off is: this is LAPACK Version 3.12.0, file SRC/dlasd1.f(3). periodt π
β¨π¦
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms