SRC/sgetsqrhrt.f(3)
π SRC/sgetsqrhrt.f
okay bestie, this page is about SRC/sgetsqrhrt.f, which lives in the Library Functions Manual neighborhood β think of it as the group chat where sgetsqrhrt does all the talking π«Ά
β¨ SYNOPSIS β¨
πΈ Functions/Subroutines
subroutine sgetsqrhrt (m, n, mb1, nb1, nb2, a, lda, t, ldt, work, lwork, info)β the whole entire vibe of this page, no cap. Name'sSGETSQRHRTπ
π Function/Subroutine Documentation π
subroutine sgetsqrhrt (integer m, integer n, integer mb1, integer nb1,
integer nb2, real, dimension( lda, * ) a, integer lda, real, dimension(
ldt, * ) t, integer ldt, real, dimension( * ) work, integer lwork,
integer info)
SGETSQRHRT β okay so this is the full signature, literally every argument typed out exactly as it lives in the source, slay β¨
Purpose π¦
SGETSQRHRT computes a NB2-sized column blocked QR-factorization of a complex M-by-N matrix A with M >= N, A = Q * R. The routine uses internally a NB1-sized column blocked and MB1-sized row blocked TSQR-factorization and perfors the reconstruction of the Householder vectors from the TSQR output. The routine also converts the R_tsqr factor from the TSQR-factorization output into the R factor that corresponds to the Householder QR-factorization, A = Q_tsqr * R_tsqr = Q * R. The output Q and R factors are stored in the same format as in SGEQRT (Q is in blocked compact WY-representation). See the documentation of SGEQRT for more details on the format.
So basically: it does a NB2-sized column blocked QR-factorization of a complex M-by-N matrix A where M >= N, giving you A = Q * R. Under the hood it's running a NB1-sized column blocked and MB1-sized row blocked TSQR-factorization π, then it reconstructs the Householder vectors from the TSQR output, and converts the R_tsqr factor into the R factor that matches the Householder QR-factorization: A = Q_tsqr * R_tsqr = Q * R. The Q and R outputs are stored in the same format as SGEQRT (Q is chilling in blocked compact WY-representation) β peep the SGEQRT docs for the deets π
π Parameters π
MβMisINTEGER. It's the number of rows of matrixA.M >= 0. πNβNisINTEGER. Number of columns of matrixA.M >= N >= 0. πMB1βMB1isINTEGER. The row block size used in the blocked TSQR.MB1 > N. βNB1βNB1isINTEGER. The column block size used in the blocked TSQR.N >= NB1 >= 1. β¨NB2βNB2isINTEGER. The block size used in the blocked QR that gets output.NB2 >= 1. πAβAisREAL array, dimension (LDA,N).- On entry: an M-by-N matrix
A. πΈ - On exit:
- a) the elements on and above the diagonal of the array contain the N-by-N upper-triangular matrix
Rcorresponding to the Householder QR; - b) the elements below the diagonal represent
Qby the columns of blockedV(compact WY-representation). π
- a) the elements on and above the diagonal of the array contain the N-by-N upper-triangular matrix
- On entry: an M-by-N matrix
LDAβLDAisINTEGER. Leading dimension of the arrayA.LDA >= max(1,M). π¦TβTisREAL array, dimension (LDT,N)). The upper triangular block reflectors stored in compact form as a sequence of upper triangular blocks. π§LDTβLDTisINTEGER. Leading dimension of the arrayT.LDT >= NB2. π«WORKβ (workspace)REAL array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK. π₯LWORKβLWORKisINTEGER. The dimension of the arrayWORK. IfMIN(M,N) = 0,LWORK >= 1, else
LWORK >= MAX( 1, LWT + LW1, MAX( LWT+N*N+LW2, LWT+N*N+N ) ),
where
NUM_ALL_ROW_BLOCKS = CEIL((M-N)/(MB1-N)),
NB1LOCAL = MIN(NB1,N).
LWT = NUM_ALL_ROW_BLOCKS * N * NB1LOCAL,
LW1 = NB1LOCAL * N,
LW2 = NB1LOCAL * MAX( NB1LOCAL, ( N - NB1LOCAL ) ).
If LWORK = -1, then a workspace query is assumed π The routine only calculates the optimal size of the WORK array, returns this value as the first entry of the WORK array, and no error message related to LWORK is issued by XERBLA.
INFOβINFOisINTEGER.= 0: successful exit π< 0: ifINFO = -i, the i-th argument had an illegal value π
π Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
π Contributors:
November 2020, Igor Kozachenko, Computer Science Division, University of California, Berkeley
π Definition at line 180 of file sgetsqrhrt.f.
π Author
Generated automatically by Doxygen for LAPACK from the source code.
and that's the whole page bestie, you ate that π«Άβ¨ this was LAPACK, Version 3.12.0, out of SRC/sgetsqrhrt.f(3) β mwah, see you in the next one π
π
π¦ 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