ungtr(3)
π ungtr(3) β Library Functions Manual π
okay so bestie, this is the ungtr(3) page, and the manual name is Library Functions Manual β folded in right here at the top instead of making you read a duplicated header line. π
β¨ NAME β¨
ungtr β {un,or}gtr: generate Q from hetrd. That's the whole name vibe, periodt. π¦
π SYNOPSIS π
π» Functions π»
subroutine cungtr (uplo, n, a, lda, tau, work, lwork, info)β this is the CUNGTR one, signature exactly as the page gives it. no cap. β¨subroutine dorgtr (uplo, n, a, lda, tau, work, lwork, info)β and here's DORGTR, same arg-list energy. πsubroutine sorgtr (uplo, n, a, lda, tau, work, lwork, info)β SORGTR is in the group chat too. π«Άsubroutine zungtr (uplo, n, a, lda, tau, work, lwork, info)β plus ZUNGTR, right on cue. πΈ
π« Detailed Description π«
This is the Detailed Description section, and it's giving "the NAME line already spilled the tea." The page says ungtr is {un,or}gtr: generate Q from hetrd. That's the detailed-description vibe here, bestie β iconic, concise, and not doing extra. β¨
π« Function Documentation π«
Okay bestie, this is the function-docs part, and itβs giving βfour routines, one missionβ: build Q out of the elementary reflectors that CHETRD / DSYTRD / SSYTRD / ZHETRD handed you. Each routine gets the full treatment below, no skips. π«Ά
π
cungtr β CUNGTR π
subroutine cungtr (character uplo, integer n, complex, dimension( lda, * )
a, integer lda, complex, dimension( * ) tau, complex, dimension( * )
work, integer lwork, integer info)
Purpose
CUNGTR generates a complex unitary matrix Q which is defined as the product of n-1 elementary reflectors of order N, as returned by CHETRD:
if UPLO = 'U', Q = H(n-1) . . . H(2) H(1),
if UPLO = 'L', Q = H(1) H(2) . . . H(n-1).
Parameters
UPLOβUPLO is CHARACTER*1= 'U':Upper triangle ofAcontains elementary reflectors fromCHETRD;= 'L':Lower triangle ofAcontains elementary reflectors fromCHETRD.
NβN is INTEGER. The order of the matrixQ.N >= 0.AβA is COMPLEX array, dimension (LDA,N). On entry, the vectors which define the elementary reflectors, as returned byCHETRD. On exit, the N-by-N unitary matrixQ.LDAβLDA is INTEGER. The leading dimension of the arrayA.LDA >= N.TAUβTAU is COMPLEX array, dimension (N-1).TAU(i)must contain the scalar factor of the elementary reflectorH(i), as returned byCHETRD.WORKβWORK is COMPLEX array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβLWORK is INTEGER. The dimension of the arrayWORK.LWORK >= N-1. For optimum performanceLWORK >= (N-1)*NB, whereNBis the optimal blocksize. IfLWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of theWORKarray, returns this value as the first entry of theWORKarray, and no error message related toLWORKis issued byXERBLA.INFOβINFO is INTEGER= 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.
Definition
Definition at line 122 of file cungtr.f.
πΈ dorgtr β DORGTR πΈ
subroutine dorgtr (character uplo, integer n, double precision, dimension(
lda, * ) a, integer lda, double precision, dimension( * ) tau, double
precision, dimension( * ) work, integer lwork, integer info)
Purpose
DORGTR generates a real orthogonal matrix Q which is defined as the product of n-1 elementary reflectors of order N, as returned by DSYTRD:
if UPLO = 'U', Q = H(n-1) . . . H(2) H(1),
if UPLO = 'L', Q = H(1) H(2) . . . H(n-1).
Parameters
UPLOβUPLO is CHARACTER*1= 'U':Upper triangle ofAcontains elementary reflectors fromDSYTRD;= 'L':Lower triangle ofAcontains elementary reflectors fromDSYTRD.
NβN is INTEGER. The order of the matrixQ.N >= 0.AβA is DOUBLE PRECISION array, dimension (LDA,N). On entry, the vectors which define the elementary reflectors, as returned byDSYTRD. On exit, the N-by-N orthogonal matrixQ.LDAβLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,N).TAUβTAU is DOUBLE PRECISION array, dimension (N-1).TAU(i)must contain the scalar factor of the elementary reflectorH(i), as returned byDSYTRD.WORKβWORK is DOUBLE PRECISION array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβLWORK is INTEGER. The dimension of the arrayWORK.LWORK >= max(1,N-1). For optimum performanceLWORK >= (N-1)*NB, whereNBis the optimal blocksize. IfLWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of theWORKarray, returns this value as the first entry of theWORKarray, and no error message related toLWORKis issued byXERBLA.INFOβINFO is INTEGER= 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.
Definition
Definition at line 122 of file dorgtr.f.
π¦ sorgtr β SORGTR π¦
subroutine sorgtr (character uplo, integer n, real, dimension( lda, * ) a,
integer lda, real, dimension( * ) tau, real, dimension( * ) work,
integer lwork, integer info)
Purpose
SORGTR generates a real orthogonal matrix Q which is defined as the product of n-1 elementary reflectors of order N, as returned by SSYTRD:
if UPLO = 'U', Q = H(n-1) . . . H(2) H(1),
if UPLO = 'L', Q = H(1) H(2) . . . H(n-1).
Parameters
UPLOβUPLO is CHARACTER*1= 'U':Upper triangle ofAcontains elementary reflectors fromSSYTRD;= 'L':Lower triangle ofAcontains elementary reflectors fromSSYTRD.
NβN is INTEGER. The order of the matrixQ.N >= 0.AβA is REAL array, dimension (LDA,N). On entry, the vectors which define the elementary reflectors, as returned bySSYTRD. On exit, the N-by-N orthogonal matrixQ.LDAβLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,N).TAUβTAU is REAL array, dimension (N-1).TAU(i)must contain the scalar factor of the elementary reflectorH(i), as returned bySSYTRD.WORKβWORK is REAL array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβLWORK is INTEGER. The dimension of the arrayWORK.LWORK >= max(1,N-1). For optimum performanceLWORK >= (N-1)*NB, whereNBis the optimal blocksize. IfLWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of theWORKarray, returns this value as the first entry of theWORKarray, and no error message related toLWORKis issued byXERBLA.INFOβINFO is INTEGER= 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.
Definition
Definition at line 122 of file sorgtr.f.
π zungtr β ZUNGTR π
subroutine zungtr (character uplo, integer n, complex*16, dimension( lda, *
) a, integer lda, complex*16, dimension( * ) tau, complex*16, dimension(
* ) work, integer lwork, integer info)
Purpose
ZUNGTR generates a complex unitary matrix Q which is defined as the product of n-1 elementary reflectors of order N, as returned by ZHETRD:
if UPLO = 'U', Q = H(n-1) . . . H(2) H(1),
if UPLO = 'L', Q = H(1) H(2) . . . H(n-1).
Parameters
UPLOβUPLO is CHARACTER*1= 'U':Upper triangle ofAcontains elementary reflectors fromZHETRD;= 'L':Lower triangle ofAcontains elementary reflectors fromZHETRD.
NβN is INTEGER. The order of the matrixQ.N >= 0.AβA is COMPLEX*16 array, dimension (LDA,N). On entry, the vectors which define the elementary reflectors, as returned byZHETRD. On exit, the N-by-N unitary matrixQ.LDAβLDA is INTEGER. The leading dimension of the arrayA.LDA >= N.TAUβTAU is COMPLEX*16 array, dimension (N-1).TAU(i)must contain the scalar factor of the elementary reflectorH(i), as returned byZHETRD.WORKβWORK is COMPLEX*16 array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβLWORK is INTEGER. The dimension of the arrayWORK.LWORK >= N-1. For optimum performanceLWORK >= (N-1)*NB, whereNBis the optimal blocksize. IfLWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of theWORKarray, returns this value as the first entry of theWORKarray, and no error message related toLWORKis issued byXERBLA.INFOβINFO is INTEGER= 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.
Definition
Definition at line 122 of file zungtr.f.
β¨ Author β¨
Generated automatically by Doxygen for LAPACK from the source code.
And thatβs the whole function-docs moment, bestie β four routines, all documented, no crumbs left. This pageβs footer energy is LAPACK Version 3.12.0 + ungtr(3) (no date in the footer, just vibes and version info). Go build your Q and slay. πβ¨
π¦ 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