DSVDCT(3)
π DSVDCT(3) β like, the whole page
okay so first things first: this is from the Library Functions Manual, and the page itself lives at /home/abui...IG/dsvdct.f(3) which is honestly the most cursed little path I've ever seen but we move π
It's a LAPACK thing, it's a subroutine, and yes bestie it counts things. That's the whole vibe. Let's get into it β¨
π SYNOPSIS
Functions/Subroutines
subroutine DSVDCT (n, s, e, shift, num)β that's her, that's the girl, and her whole personality isDSVDCT
πΈ Function/Subroutine Documentation
subroutine DSVDCT (integer n, double precision, dimension( * ) s, double precision, dimension( * ) e, double precision shift, integer num)
DSVDCT β¨ (yes she gets her own line, she's the main character)
π¦ Purpose
!> DSVDCT counts the number NUM of eigenvalues of a 2*N by 2*N !> tridiagonal matrix T which are less than or equal to SHIFT. T is !> formed by putting zeros on the diagonal and making the off-diagonals !> equal to S(1), E(1), S(2), E(2), ... , E(N-1), S(N). If SHIFT is !> positive, NUM is equal to N plus the number of singular values of a !> bidiagonal matrix B less than or equal to SHIFT. Here B has diagonal !> entries S(1), ..., S(N) and superdiagonal entries E(1), ... E(N-1). !> If SHIFT is negative, NUM is equal to the number of singular values !> of B greater than or equal to -SHIFT. !> !> See W. Kahan , Report CS41, Computer Science Dept., Stanford University, !> July 21, 1966
so basically: you hand her a SHIFT, she hands you back how many eigenvalues of T are <= SHIFT. T is that 2*N by 2*N tridiagonal situation where the diagonal is all zeros and the off-diagonals are S(1), E(1), S(2), E(2), ... , E(N-1), S(N). iconic behaviour honestly π
and the cute part: if SHIFT is positive, NUM is N plus the number of singular values of a bidiagonal matrix B that are <= SHIFT β where B has diagonal entries S(1), ..., S(N) and superdiagonal entries E(1), ... E(N-1). if SHIFT is negative, NUM is the number of singular values of B that are >= -SHIFT. slay π«Ά
π real talk: the source says these exact words, so I'm giving you these exact words. don't come for me, I'm just the messenger girlie.
π Parameters
Nβ it's anINTEGER, and it's the dimension of the bidiagonal matrixB. that's it, that's the tea πSβ aDOUBLE PRECISIONarray, dimension(N), holding the diagonal entries of the bidiagonal matrixB. she's the main diagonal, she's booked and busy β¨Eβ aDOUBLE PRECISIONarray of dimension(N-1), holding the superdiagonal entries of the bidiagonal matrixB. note theN-1bestie, superdiagonals are always one shorter, no cap πSHIFTβ a plain oldDOUBLE PRECISION. it's the shift, and it does exactly what Purpose said it does. no notes π₯NUMβ anINTEGER, and it's the number of eigenvalues ofTthat are less than or equal toSHIFT. the output. the moment. the payoff π
π§ Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
(icons, the lot of them π)
π Definition at line 86 of file dsvdct.f.
π Author (again, yes really)
Generated automatically by Doxygen for LAPACK from the source code. so nobody hand-wrote this page, a robot did it, and honestly? she ate π€π
β and that's the whole page, bestie. no lurking options, no environment variables, no exit statuses β just a counting subroutine and her friends.
sign-off time π this was LAPACK, Version 3.12.0, dated /home/abui...IG/dsvdct.f(3), and I hope you love her as much as I do ππ¦β¨
π¦ 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