CQRT12(3)
πΈ cqrt12.f(3) β bestie edition πΈ
okay so this is a page from the Library Functions Manual for cqrt12.f(3), and it's literally the glow-up documentation for one little LAPACK testing helper. it's not a huge man page but it's our man page, and we're gonna read it together. grab a snack π
β¨ NAME β¨
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/TESTING/LIN/cqrt12.f
yeah that's the whole name. it's a path. she's long, she's giving filesystem realness, and she is iconic for it π
π¦ SYNOPSIS π¦
Functions/Subroutines
real function CQRT12 (m, n, a, lda, s, work, lwork, rwork)
CQRT12 β that's her, that's the whole function, no notes π
π Function/Subroutine Documentation π
real function CQRT12 (integer m, integer n, complex, dimension( lda, * ) a,
integer lda, real, dimension( * ) s, complex, dimension( lwork ) work,
integer lwork, real, dimension( * ) rwork)
CQRT12
π Purpose:
ok so the vibe of this function, fr fr:
!>
!> CQRT12 computes the singular values `svlues' of the upper trapezoid
!> of A(1:M,1:N) and returns the ratio
!>
!> || svlues -s ||/( ||s||*eps*max(M,N) )
!>
yes bestie, the original really does spell it svlues β that's a choice, we are keeping it exactly as written, no cap π it computes the singular values of the upper trapezoid of A(1:M,1:N) and hands you back that ratio. the !> stuff is just Fortran doc-comment glitter β¨
π Parameters
MβMisINTEGER. the number of rows of the matrixA. that's the up-and-down count, iykyk.NβNisINTEGER. the number of columns of the matrixA. that's the left-and-right count π«ΆAβAisCOMPLEXarray, dimension(LDA,N). it's theM-by-NmatrixA, but heads up: only the upper trapezoid is referenced. she does not read the whole thing, only the glow-up triangle part πLDAβLDAisINTEGER. the leading dimension of the arrayA. respect her dimensions.SβSisREALarray, dimension(min(M,N)). the singular values of the matrixA. these are the values your heart desires πWORKβWORKisCOMPLEXarray, dimension(LWORK). a workspace. she works, okay? πLWORKβLWORKisINTEGER. the length of the arrayWORK. and here's the actual tea, the size requirement:
LWORK >= M*N + 2*min(M,N) + max(M,N).
do not disrespect this, the math said what it said πβ¨
RWORKβRWORKisREALarray, dimension(4*min(M,N)). more workspace, but make it real-number flavored.
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
the whole squad came together for this one, we love a collab ππ«Ά
β Definition at line 95 of file cqrt12.f.
literally line 95, go look, she's there π
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
so nobody hand-wrote this page β Doxygen did it, automatically, like a little robot bestie π€β¨ (we still appreciate her tho)
and that's the whole page, bestie!! π one last thing, the cute lil' sign-off at the bottom: this is LAPACK, Version 3.12.0, and the page is from /home/abui...IN/cqrt12.f(3). slay, go test those singular values, mwah ππ¦πΈ
π¦ 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