geqr2p#
Functions
-
void sgeqr2p(const INT m, const INT n, f32 *restrict A, const INT lda, f32 *restrict tau, f32 *restrict work, INT *info)#
SGEQR2P computes a QR factorization of a real m-by-n matrix A:
A = Q * ( R ), ( 0 )
where: Q is a m-by-m orthogonal matrix; R is an upper-triangular n-by-n matrix with nonnegative diagonal entries; 0 is a (m-n)-by-n zero matrix, if m > n.
The matrix Q is represented as a product of elementary reflectors Q = H(1) H(2) … H(k), 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(0:i-1) = 0 and v(i) = 1; v(i+1:m-1) is stored on exit in A(i+1:m-1, i), and tau in TAU(i).
See Lapack Working Note 203 for details.
Parameters
inmThe number of rows of A. m >= 0.
innThe number of columns of A. n >= 0.
inoutAOn entry, the m-by-n matrix A. On exit, the elements on and above the diagonal contain the min(m,n)-by-n upper trapezoidal matrix R (R is upper triangular if m >= n). The diagonal entries of R are nonnegative; the elements below the diagonal, with the array TAU, represent the orthogonal matrix Q as a product of elementary reflectors.
inldaThe leading dimension of A. lda >= max(1, m).
outtauArray of dimension min(m, n). The scalar factors of the elementary reflectors.
outworkWorkspace, dimension (n).
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value.
void sgeqr2p(
const INT m,
const INT n,
f32* restrict A,
const INT lda,
f32* restrict tau,
f32* restrict work,
INT* info
);
Functions
-
void dgeqr2p(const INT m, const INT n, f64 *restrict A, const INT lda, f64 *restrict tau, f64 *restrict work, INT *info)#
DGEQR2P computes a QR factorization of a real m-by-n matrix A:
A = Q * ( R ), ( 0 )
where: Q is a m-by-m orthogonal matrix; R is an upper-triangular n-by-n matrix with nonnegative diagonal entries; 0 is a (m-n)-by-n zero matrix, if m > n.
The matrix Q is represented as a product of elementary reflectors Q = H(1) H(2) … H(k), 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(0:i-1) = 0 and v(i) = 1; v(i+1:m-1) is stored on exit in A(i+1:m-1, i), and tau in TAU(i).
See Lapack Working Note 203 for details.
Parameters
inmThe number of rows of A. m >= 0.
innThe number of columns of A. n >= 0.
inoutAOn entry, the m-by-n matrix A. On exit, the elements on and above the diagonal contain the min(m,n)-by-n upper trapezoidal matrix R (R is upper triangular if m >= n). The diagonal entries of R are nonnegative; the elements below the diagonal, with the array TAU, represent the orthogonal matrix Q as a product of elementary reflectors.
inldaThe leading dimension of A. lda >= max(1, m).
outtauArray of dimension min(m, n). The scalar factors of the elementary reflectors.
outworkWorkspace, dimension (n).
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value.
void dgeqr2p(
const INT m,
const INT n,
f64* restrict A,
const INT lda,
f64* restrict tau,
f64* restrict work,
INT* info
);
Functions
-
void cgeqr2p(const INT m, const INT n, c64 *restrict A, const INT lda, c64 *restrict tau, c64 *restrict work, INT *info)#
CGEQR2P computes a QR factorization of a complex m-by-n matrix A:
A = Q * ( R ), ( 0 )
where: Q is a m-by-m orthogonal matrix; R is an upper-triangular n-by-n matrix with nonnegative diagonal entries; 0 is a (m-n)-by-n zero matrix, if m > n.
The matrix Q is represented as a product of elementary reflectors Q = H(1) H(2) … H(k), 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(0:i-1) = 0 and v(i) = 1; v(i+1:m-1) is stored on exit in A(i+1:m-1, i), and tau in TAU(i).
See Lapack Working Note 203 for details.
Parameters
inmThe number of rows of A. m >= 0.
innThe number of columns of A. n >= 0.
inoutAOn entry, the m-by-n matrix A. On exit, the elements on and above the diagonal contain the min(m,n)-by-n upper trapezoidal matrix R (R is upper triangular if m >= n). The diagonal entries of R are nonnegative; the elements below the diagonal, with the array TAU, represent the orthogonal matrix Q as a product of elementary reflectors.
inldaThe leading dimension of A. lda >= max(1, m).
outtauArray of dimension min(m, n). The scalar factors of the elementary reflectors.
outworkWorkspace, dimension (n).
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value.
void cgeqr2p(
const INT m,
const INT n,
c64* restrict A,
const INT lda,
c64* restrict tau,
c64* restrict work,
INT* info
);
Functions
-
void zgeqr2p(const INT m, const INT n, c128 *restrict A, const INT lda, c128 *restrict tau, c128 *restrict work, INT *info)#
ZGEQR2P computes a QR factorization of a complex m-by-n matrix A:
A = Q * ( R ), ( 0 )
where: Q is a m-by-m orthogonal matrix; R is an upper-triangular n-by-n matrix with nonnegative diagonal entries; 0 is a (m-n)-by-n zero matrix, if m > n.
The matrix Q is represented as a product of elementary reflectors Q = H(1) H(2) … H(k), 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(0:i-1) = 0 and v(i) = 1; v(i+1:m-1) is stored on exit in A(i+1:m-1, i), and tau in TAU(i).
See Lapack Working Note 203 for details.
Parameters
inmThe number of rows of A. m >= 0.
innThe number of columns of A. n >= 0.
inoutAOn entry, the m-by-n matrix A. On exit, the elements on and above the diagonal contain the min(m,n)-by-n upper trapezoidal matrix R (R is upper triangular if m >= n). The diagonal entries of R are nonnegative; the elements below the diagonal, with the array TAU, represent the orthogonal matrix Q as a product of elementary reflectors.
inldaThe leading dimension of A. lda >= max(1, m).
outtauArray of dimension min(m, n). The scalar factors of the elementary reflectors.
outworkWorkspace, dimension (n).
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value.
void zgeqr2p(
const INT m,
const INT n,
c128* restrict A,
const INT lda,
c128* restrict tau,
c128* restrict work,
INT* info
);