TESTING/LIN/cqrt12.f(3)
π TESTING/LIN/cqrt12.f π
okay so bestie, welcome to the cqrt12 page from the LAPACK manual (you're in the TESTING/LIN directory btw, slay) β it's a Fortran file, it's iconic, and it's lowkey doing some very specific math for us π
β¨ SYNOPSIS β¨
π Functions/Subroutines π
real function cqrt12 (m, n, a, lda, s, work, lwork, rwork)β CQRT12
π¦ 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: πΈ
!> 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) )
like yes, it literally computes those svlues (that spelling is straight from the source, don't come for me π) of the upper trapezoid of A(1:M,1:N) and hands you back that ratio. periodt. π₯
π Parameters π
M
!> M is INTEGER !> The number of rows of the matrix A.
it's the row count bestie, the number of rows of the matrix A π
N
!> N is INTEGER !> The number of columns of the matrix A.
the column count β the number of columns of the matrix A π«Ά
A
!> A is COMPLEX array, dimension (LDA,N) !> The M-by-N matrix A. Only the upper trapezoid is referenced.
your M-by-N matrix A β and heads up, only the upper trapezoid gets referenced, the rest is just vibing π
LDA
!> LDA is INTEGER !> The leading dimension of the array A.
the leading dimension of the array A, no cap π§
S
!> S is REAL array, dimension (min(M,N)) !> The singular values of the matrix A.
REAL array of dimension min(M,N) holding the singular values of the matrix A β
WORK
!> WORK is COMPLEX array, dimension (LWORK)
COMPLEX array, dimension (LWORK) β it's the workspace, it's doing the work, main character energy honestly π
LWORK
!> LWORK is INTEGER !> The length of the array WORK. LWORK >= M*N + 2*min(M,N) + !> max(M,N).
the length of the array WORK, and the vibe check here is real: LWORK >= M*N + 2*min(M,N) + max(M,N) β don't skimp on it π
RWORK
!> RWORK is REAL array, dimension (4*min(M,N))
REAL array, dimension (4*min(M,N)) β yes, four times, that's not a typo πΈ
π Author π
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Definition at line 95 of file cqrt12.f. π
π Author π
Generated automatically by Doxygen for LAPACK from the source code. (the robots wrote this part, not me π«‘)
okay that's the whole page bestie, you ate that π
LAPACK β Version 3.12.0 ππ
β¨ sign-off, with the page tag TESTING/LIN/cqrt12.f(3) β go be iconic with your singular values fr fr ππ¦π
π¦ 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