geqr#
Functions
-
void sgeqr(const INT m, const INT n, f32 *restrict A, const INT lda, f32 *restrict T, const INT tsize, f32 *restrict work, const INT lwork, INT *info)#
SGEQR 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; 0 is a (M-N)-by-N zero matrix, if M > N.
Parameters
inmThe number of rows of the matrix A. m >= 0.
innThe number of columns of the matrix A. n >= 0.
inoutADouble precision array, dimension (lda, n). On 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; the elements below the diagonal are used to store part of the data structure to represent Q.
inldaThe leading dimension of the array A. lda >= max(1, m).
outTDouble precision array, dimension (max(5, tsize)). On exit, if info = 0, T[0] returns optimal (or minimal) tsize. T[1] = MB, T[2] = NB (block sizes). Remaining T contains part of the data structure for Q.
intsizeIf tsize >= 5, the dimension of array T. If tsize = -1 or -2, workspace query is assumed.
outworkWorkspace array, dimension (max(1, lwork)). On exit, if info = 0, work[0] contains optimal (or minimal) lwork.
inlworkThe dimension of array work. lwork >= 1. If lwork = -1 or -2, workspace query is assumed.
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value
void sgeqr(
const INT m,
const INT n,
f32* restrict A,
const INT lda,
f32* restrict T,
const INT tsize,
f32* restrict work,
const INT lwork,
INT* info
);
Functions
-
void dgeqr(const INT m, const INT n, f64 *restrict A, const INT lda, f64 *restrict T, const INT tsize, f64 *restrict work, const INT lwork, INT *info)#
DGEQR 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; 0 is a (M-N)-by-N zero matrix, if M > N.
Parameters
inmThe number of rows of the matrix A. m >= 0.
innThe number of columns of the matrix A. n >= 0.
inoutADouble precision array, dimension (lda, n). On 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; the elements below the diagonal are used to store part of the data structure to represent Q.
inldaThe leading dimension of the array A. lda >= max(1, m).
outTDouble precision array, dimension (max(5, tsize)). On exit, if info = 0, T[0] returns optimal (or minimal) tsize. T[1] = MB, T[2] = NB (block sizes). Remaining T contains part of the data structure for Q.
intsizeIf tsize >= 5, the dimension of array T. If tsize = -1 or -2, workspace query is assumed.
outworkWorkspace array, dimension (max(1, lwork)). On exit, if info = 0, work[0] contains optimal (or minimal) lwork.
inlworkThe dimension of array work. lwork >= 1. If lwork = -1 or -2, workspace query is assumed.
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value
void dgeqr(
const INT m,
const INT n,
f64* restrict A,
const INT lda,
f64* restrict T,
const INT tsize,
f64* restrict work,
const INT lwork,
INT* info
);
Functions
-
void cgeqr(const INT m, const INT n, c64 *restrict A, const INT lda, c64 *restrict T, const INT tsize, c64 *restrict work, const INT lwork, INT *info)#
CGEQR 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; 0 is a (M-N)-by-N zero matrix, if M > N.
Parameters
inmThe number of rows of the matrix A. m >= 0.
innThe number of columns of the matrix A. n >= 0.
inoutASingle complex array, dimension (lda, n). On 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; the elements below the diagonal are used to store part of the data structure to represent Q.
inldaThe leading dimension of the array A. lda >= max(1, m).
outTSingle complex array, dimension (max(5, tsize)). On exit, if info = 0, T[0] returns optimal (or minimal) tsize. T[1] = MB, T[2] = NB (block sizes). Remaining T contains part of the data structure for Q.
intsizeIf tsize >= 5, the dimension of array T. If tsize = -1 or -2, workspace query is assumed.
outworkWorkspace array, dimension (max(1, lwork)). On exit, if info = 0, work[0] contains optimal (or minimal) lwork.
inlworkThe dimension of array work. lwork >= 1. If lwork = -1 or -2, workspace query is assumed.
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value
void cgeqr(
const INT m,
const INT n,
c64* restrict A,
const INT lda,
c64* restrict T,
const INT tsize,
c64* restrict work,
const INT lwork,
INT* info
);
Functions
-
void zgeqr(const INT m, const INT n, c128 *restrict A, const INT lda, c128 *restrict T, const INT tsize, c128 *restrict work, const INT lwork, INT *info)#
ZGEQR 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; 0 is a (M-N)-by-N zero matrix, if M > N.
Parameters
inmThe number of rows of the matrix A. m >= 0.
innThe number of columns of the matrix A. n >= 0.
inoutADouble complex array, dimension (lda, n). On 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; the elements below the diagonal are used to store part of the data structure to represent Q.
inldaThe leading dimension of the array A. lda >= max(1, m).
outTDouble complex array, dimension (max(5, tsize)). On exit, if info = 0, T[0] returns optimal (or minimal) tsize. T[1] = MB, T[2] = NB (block sizes). Remaining T contains part of the data structure for Q.
intsizeIf tsize >= 5, the dimension of array T. If tsize = -1 or -2, workspace query is assumed.
outworkWorkspace array, dimension (max(1, lwork)). On exit, if info = 0, work[0] contains optimal (or minimal) lwork.
inlworkThe dimension of array work. lwork >= 1. If lwork = -1 or -2, workspace query is assumed.
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value
void zgeqr(
const INT m,
const INT n,
c128* restrict A,
const INT lda,
c128* restrict T,
const INT tsize,
c128* restrict work,
const INT lwork,
INT* info
);