SRC/slasd5.f(3)
π SRC/slasd5.f(3) π
okay so this is a page from the Library Functions Manual, and it is fully devoted to one tiny Fortran subroutine: slasd5. It is giving βsmall but mathematically booked and busyβ energy, and I am obsessed. β¨
π NAME π
SRC/slasd5.f
β¨ SYNOPSIS β¨
πΈ Functions/Subroutines πΈ
subroutine slasd5 (i, d, z, delta, rho, dsigma, work)β SLASD5 computes the square root of the i-th eigenvalue of a positive symmetric rank-one modification of a 2-by-2 diagonal matrix. Used bysbdsdc.
π¦ Function/Subroutine Documentation π¦
subroutine slasd5 (integer i, real, dimension( 2 ) d, real, dimension( 2 )
z, real, dimension( 2 ) delta, real rho, real dsigma, real, dimension( 2
) work)
SLASD5 computes the square root of the i-th eigenvalue of a positive symmetric rank-one modification of a 2-by-2 diagonal matrix. Used by sbdsdc.
π₯ Purpose π₯
okay so here is the main character moment, bestie: this subroutine computes the square root of the I-th eigenvalue of a positive symmetric rank-one modification of a 2-by-2 diagonal matrix:
diag( D ) * diag( D ) + RHO * Z * transpose(Z) .
The diagonal entries in the array D are assumed to satisfy:
0 <= D(i) < D(j) for i < j .
We also assume RHO > 0 and that the Euclidean norm of the vector Z is one.
π Parameters π
IβIisINTEGER. The index of the eigenvalue to be computed.I = 1orI = 2.DβDisREAL array, dimension (2). The original eigenvalues. We assume0 <= D(1) < D(2).ZβZisREAL array, dimension (2). The components of the updating vector.DELTAβDELTAisREAL array, dimension (2). Contains(D(j) - sigma_I)in itsj-th component. The vectorDELTAcontains the information necessary to construct the eigenvectors.RHOβRHOisREAL. The scalar in the symmetric updating formula.DSIGMAβDSIGMAisREAL. The computedsigma_I, theI-th updated eigenvalue.WORKβWORKisREAL array, dimension (2).WORKcontains(D(j) + sigma_I)in itsj-th component.
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Contributors π
- Ren-Cang Li, Computer Science Division, University of California at Berkeley, USA
Definition at line 115 of file slasd5.f.
πͺ Author πͺ
Generated automatically by Doxygen for LAPACK from the source code.
and that is the whole page, bestie. LAPACK Version 3.12.0, source SRC/slasd5.f(3) β mwah π. The footer does not print a date, so I am not gonna make one up π.
π¦ 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