gelq2(3)
โจ gelq2 โ LQ factor, level 2 โจ
okay so real talk, bestie: this is gelq2 from section 3 of the Library Functions Manual, and it's the whole "LQ factor, level 2" situation โ like the level-2 BLAS-flavored glow-up of an LQ factorization ๐
buckle up, because we're getting into the four subroutine flavors of the exact same thing and honestly? iconic.
๐ธ NAME ๐ธ
gelq2 โ gelq2: LQ factor, level 2
that's it. that's the name. short, sweet, main character energy ๐
๐ SYNOPSIS ๐
๐ Functions ๐
subroutine cgelq2 (m, n, a, lda, tau, work, info)โ theCGELQ2one, computing the LQ factorization of a general rectangular matrix using an unblocked algorithm ๐ฆsubroutine dgelq2 (m, n, a, lda, tau, work, info)โ theDGELQ2one, computing the LQ factorization of a general rectangular matrix using an unblocked algorithm ๐ฆsubroutine sgelq2 (m, n, a, lda, tau, work, info)โ theSGELQ2one, computing the LQ factorization of a general rectangular matrix using an unblocked algorithm ๐ฆsubroutine zgelq2 (m, n, a, lda, tau, work, info)โ theZGELQ2one, computing the LQ factorization of a general rectangular matrix using an unblocked algorithm ๐ฆ
ngl the four of them are literally the same dialogue with different precision casting โ c / d / s / z, all four taking the exact same argument list (m, n, a, lda, tau, work, info), all four doing that unblocked LQ factorization thing. periodt ๐
โญ Detailed Description โญ
so likeโฆ that's the whole description section in this part, bestie ๐ the details live in the next part, and you already know I'm gonna walk you through every single argument. no skips. no vibes-based guessing. fr fr.
๐ heads up: more parts are coming, so stay tuned โ don't close the tab yet ๐
๐ป FUNCTION DOCUMENTATION ๐ป
Okay so this is where the actual subroutines pop off. Four flavors, same LQ factorization energy, different scalar types. Let's go ๐
๐ฆ cgelq2
subroutine cgelq2 (integer m, integer n, complex, dimension( lda, * ) a, integer lda, complex, dimension( * ) tau, complex, dimension( * ) work, integer info)
CGELQ2 computes the LQ factorization of a general rectangular matrix using an unblocked algorithm. Periodt.
๐ฏ Purpose
CGELQ2 computes an LQ factorization of a complex m-by-n matrix A:
A = ( L 0 ) * Q
where:
Qis a n-by-n orthogonal matrix;Lis a lower-triangular m-by-m matrix;0is a m-by-(n-m) zero matrix, ifm < n.
๐งฎ Parameters
MโM is INTEGER. The number of rows of the matrixA.M >= 0.NโN is INTEGER. The number of columns of the matrixA.N >= 0.AโA is COMPLEX array, dimension (LDA,N). On entry, thembynmatrixA. On exit, the elements on and below the diagonal of the array contain thembymin(m,n)lower trapezoidal matrixL(Lis lower triangular ifm <= n); the elements above the diagonal, with the arrayTAU, represent the unitary matrixQas a product of elementary reflectors (see Further Details).LDAโLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,M).TAUโTAU is COMPLEX array, dimension (min(M,N)). The scalar factors of the elementary reflectors (see Further Details).WORKโWORK is COMPLEX array, dimension (M).INFOโINFO is INTEGER:= 0: successful exit< 0: ifINFO = -i, thei-th argument had an illegal value
โจ Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
๐ Further Details
The matrix Q is represented as a product of elementary reflectors
Q = H(k)**H . . . H(2)**H H(1)**H, where k = min(m,n).
Each H(i) has the form
H(i) = I - tau * v * v**H
where tau is a complex scalar, and v is a complex vector with v(1:i-1) = 0 and v(i) = 1; conjg(v(i+1:n)) is stored on exit in A(i,i+1:n), and tau in TAU(i).
Definition at line 128 of file cgelq2.f.
๐ฆ dgelq2
subroutine dgelq2 (integer m, integer n, double precision, dimension( lda, * ) a, integer lda, double precision, dimension( * ) tau, double precision, dimension( * ) work, integer info)
DGELQ2 computes the LQ factorization of a general rectangular matrix using an unblocked algorithm. Yup, same vibe, double precision edition.
๐ฏ Purpose
DGELQ2 computes an LQ factorization of a real m-by-n matrix A:
A = ( L 0 ) * Q
where:
Qis a n-by-n orthogonal matrix;Lis a lower-triangular m-by-m matrix;0is a m-by-(n-m) zero matrix, ifm < n.
๐งฎ Parameters
MโM is INTEGER. The number of rows of the matrixA.M >= 0.NโN is INTEGER. The number of columns of the matrixA.N >= 0.AโA is DOUBLE PRECISION array, dimension (LDA,N). On entry, thembynmatrixA. On exit, the elements on and below the diagonal of the array contain thembymin(m,n)lower trapezoidal matrixL(Lis lower triangular ifm <= n); the elements above the diagonal, with the arrayTAU, represent the orthogonal matrixQas a product of elementary reflectors (see Further Details).LDAโLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,M).TAUโTAU is DOUBLE PRECISION array, dimension (min(M,N)). The scalar factors of the elementary reflectors (see Further Details).WORKโWORK is DOUBLE PRECISION array, dimension (M).INFOโINFO is INTEGER:= 0: successful exit< 0: ifINFO = -i, thei-th argument had an illegal value
โจ Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
๐ Further Details
The matrix Q is represented as a product of elementary reflectors
Q = H(k) . . . H(2) H(1), where k = min(m,n).
Each H(i) has the form
H(i) = I - tau * v * v**T
where tau is a real scalar, and v is a real vector with v(1:i-1) = 0 and v(i) = 1; v(i+1:n) is stored on exit in A(i,i+1:n), and tau in TAU(i).
Definition at line 128 of file dgelq2.f.
๐ฆ sgelq2
subroutine sgelq2 (integer m, integer n, real, dimension( lda, * ) a, integer lda, real, dimension( * ) tau, real, dimension( * ) work, integer info)
SGELQ2 computes the LQ factorization of a general rectangular matrix using an unblocked algorithm. Real ones, rise up ๐ซถ
๐ฏ Purpose
SGELQ2 computes an LQ factorization of a real m-by-n matrix A:
A = ( L 0 ) * Q
where:
Qis a n-by-n orthogonal matrix;Lis a lower-triangular m-by-m matrix;0is a m-by-(n-m) zero matrix, ifm < n.
๐งฎ Parameters
MโM is INTEGER. The number of rows of the matrixA.M >= 0.NโN is INTEGER. The number of columns of the matrixA.N >= 0.AโA is REAL array, dimension (LDA,N). On entry, thembynmatrixA. On exit, the elements on and below the diagonal of the array contain thembymin(m,n)lower trapezoidal matrixL(Lis lower triangular ifm <= n); the elements above the diagonal, with the arrayTAU, represent the orthogonal matrixQas a product of elementary reflectors (see Further Details).LDAโLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,M).TAUโTAU is REAL array, dimension (min(M,N)). The scalar factors of the elementary reflectors (see Further Details).WORKโWORK is REAL array, dimension (M).INFOโINFO is INTEGER:= 0: successful exit< 0: ifINFO = -i, thei-th argument had an illegal value
โจ Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
๐ Further Details
The matrix Q is represented as a product of elementary reflectors
Q = H(k) . . . H(2) H(1), where k = min(m,n).
Each H(i) has the form
H(i) = I - tau * v * v**T
where tau is a real scalar, and v is a real vector with v(1:i-1) = 0 and v(i) = 1; v(i+1:n) is stored on exit in A(i,i+1:n), and tau in TAU(i).
Definition at line 128 of file sgelq2.f.
๐ฆ zgelq2
subroutine zgelq2 (integer m, integer n, complex*16, dimension( lda, * ) a, integer lda, complex*16, dimension( * ) tau, complex*16, dimension( * ) work, integer info)
ZGELQ2 computes the LQ factorization of a general rectangular matrix using an unblocked algorithm. Double complex, double iconic ๐ฅ
๐ฏ Purpose
ZGELQ2 computes an LQ factorization of a complex m-by-n matrix A:
A = ( L 0 ) * Q
where:
Qis a n-by-n orthogonal matrix;Lis a lower-triangular m-by-m matrix;0is a m-by-(n-m) zero matrix, ifm < n.
๐งฎ Parameters
MโM is INTEGER. The number of rows of the matrixA.M >= 0.NโN is INTEGER. The number of columns of the matrixA.N >= 0.AโA is COMPLEX*16 array, dimension (LDA,N). On entry, thembynmatrixA. On exit, the elements on and below the diagonal of the array contain thembymin(m,n)lower trapezoidal matrixL(Lis lower triangular ifm <= n); the elements above the diagonal, with the arrayTAU, represent the unitary matrixQas a product of elementary reflectors (see Further Details).LDAโLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,M).TAUโTAU is COMPLEX*16 array, dimension (min(M,N)). The scalar factors of the elementary reflectors (see Further Details).WORKโWORK is COMPLEX*16 array, dimension (M).INFOโINFO is INTEGER:= 0: successful exit< 0: ifINFO = -i, thei-th argument had an illegal value
โจ Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
๐ Further Details
The matrix Q is represented as a product of elementary reflectors
Q = H(k)**H . . . H(2)**H H(1)**H, where k = min(m,n).
Each H(i) has the form
H(i) = I - tau * v * v**H
where tau is a complex scalar, and v is a complex vector with v(1:i-1) = 0 and v(i) = 1; conjg(v(i+1:n)) is stored on exit in A(i,i+1:n), and tau in TAU(i).
Definition at line 128 of file zgelq2.f.
๐ Author
Generated automatically by Doxygen for LAPACK from the source code.
That's the tea, bestie. This page is from LAPACK, Version 3.12.0, and it's the gelq2(3) manual page โ the footer has no date, just version + page name energy. ๐โจ
๐ฆ 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