SRC/slasd7.f(3)
π SRC/slasd7.f(3) π
okay bestie, welcome to the Library Functions Manual β this page is literally all about SRC/slasd7.f(3), and weβre gonna get you comfy with it. β¨
πΈ NAME πΈ
SRC/slasd7.f β thatβs the file, periodt.
β¨ SYNOPSIS β¨
π§ Functions/Subroutines π§
subroutine slasd7 (icompq, nl, nr, sqre, k, d, z, zw, vf, vfw, vl, vlw,
alpha, beta, dsigma, idx, idxp, idxq, perm, givptr, givcol, ldgcol,
givnum, ldgnum, c, s, info)
SLASD7 merges the two sets of singular values together into a single sorted set. Then it tries to deflate the size of the problem. Used by sbdsdc. π
π¦ Function/Subroutine Documentation π¦
π subroutine slasd7 π
subroutine slasd7 (integer icompq, integer nl, integer nr, integer sqre,
integer k, real, dimension( * ) d, real, dimension( * ) z, real,
dimension( * ) zw, real, dimension( * ) vf, real, dimension( * ) vfw,
real, dimension( * ) vl, real, dimension( * ) vlw, real alpha, real
beta, real, dimension( * ) dsigma, integer, dimension( * ) idx, integer,
dimension( * ) idxp, integer, dimension( * ) idxq, integer, dimension( *
) perm, integer givptr, integer, dimension( ldgcol, * ) givcol, integer
ldgcol, real, dimension( ldgnum, * ) givnum, integer ldgnum, real c,
real s, integer info)
SLASD7 merges the two sets of singular values together into a single sorted set. Then it tries to deflate the size of the problem. Used by sbdsdc.
π Purpose π
okay so, the purpose is giving: SLASD7 merges the two sets of singular values together into a single sorted set. Then it tries to deflate the size of the problem. There are two ways in which deflation can occur:
- when two or more singular values are close together
- if there is a tiny entry in the
Zvector
For each such occurrence the order of the related secular equation problem is reduced by one. π«
And yes: SLASD7 is called from SLASD6. iykyk.
π Parameters π
ICOMPQβICOMPQ is INTEGER. Specifies whether singular vectors are to be computed in compact form, as follows:= 0: Compute singular values only.= 1: Compute singular vectors of upper bidiagonal matrix in compact form.
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 N = NL + NR + 1 rows and M = N + SQRE >= N columns.
KβK is INTEGER. Contains the dimension of the non-deflated matrix, this is the order of the related secular equation.1 <= K <=N.DβD is REAL array, dimension ( N ). On entryDcontains the singular values of the two submatrices to be combined. On exitDcontains the trailing(N-K)updated singular values (those which were deflated) sorted into increasing order.ZβZ is REAL array, dimension ( M ). On exitZcontains the updating row vector in the secular equation.ZWβZW is REAL array, dimension ( M ). Workspace forZ.VFβVF is REAL array, 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.VFWβVFW is REAL array, dimension ( M ). Workspace forVF.VLβVL is REAL array, 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.VLWβVLW is REAL array, dimension ( M ). Workspace forVL.ALPHAβALPHA is REAL. Contains the diagonal element associated with the added row.BETAβBETA is REAL. Contains the off-diagonal element associated with the added row.DSIGMAβDSIGMA is REAL array, dimension ( N ). Contains a copy of the diagonal elements (K-1singular values and one zero) in the secular equation.IDXβIDX is INTEGER array, dimension ( N ). This will contain the permutation used to sort the contents ofDinto ascending order.IDXPβIDXP is INTEGER array, dimension ( N ). This will contain the permutation used to place deflated values ofDat the end of the array. On outputIDXP(2:K)points to the nondeflatedD-values andIDXP(K+1:N)points to the deflated singular values.IDXQβIDXQ is INTEGER array, dimension ( N ). This contains the permutation which separately sorts the two sub-problems inDinto ascending order. Note that entries in the first half of this permutation must first be moved one position backward; and entries in the second half must first haveNL+1added to their values.PERMβPERM is INTEGER array, dimension ( N ). The permutations (from deflation and sorting) to be applied to each singular block. Not referenced ifICOMPQ = 0.GIVPTRβGIVPTR is INTEGER. The number of Givens rotations which took place in this subproblem. Not referenced ifICOMPQ = 0.GIVCOLβGIVCOL is INTEGER array, dimension ( LDGCOL, 2 ). Each pair of numbers indicates a pair of columns to take place in a Givens rotation. Not referenced ifICOMPQ = 0.LDGCOLβLDGCOL is INTEGER. The leading dimension ofGIVCOL, must be at leastN.GIVNUMβGIVNUM is REAL array, dimension ( LDGNUM, 2 ). Each number indicates theCorSvalue to be used in the corresponding Givens rotation. Not referenced ifICOMPQ = 0.LDGNUMβLDGNUM is INTEGER. The leading dimension ofGIVNUM, must be at leastN.CβC is REAL.Ccontains garbage ifSQRE =0and theC-value of a Givens rotation related to the right null space ifSQRE = 1.SβS is REAL.Scontains garbage ifSQRE =0and theS-value of a Givens rotation related to the right null space ifSQRE = 1.INFOβINFO is 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 Huan Ren, Computer Science Division, University of California at Berkeley, USA
π Definition at line π
Definition at line 276 of file slasd7.f.
πͺ Author πͺ
Generated automatically by Doxygen for LAPACK from the source code.
π okay bestie, thatβs the whole page. This is LAPACK Version 3.12.0, source page SRC/slasd7.f(3) β no date is printed in this footer, so weβre not inventing one. Mwah! π
π¦ 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