gelq#
Functions
-
void sgelq(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)#
SGELQ computes an LQ factorization of a real M-by-N matrix A:
A = ( L 0 ) * Q
where:
Q is a N-by-N orthogonal matrix; L is a lower-triangular M-by-M matrix; 0 is a M-by-(N-M) 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 below the diagonal contain the M-by-min(M,N) lower trapezoidal matrix L; the elements above 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. Remaining T contains part of the data structure used to represent Q.
intsizeIf tsize >= 5, the dimension of the array T. If tsize = -1 or -2, then a workspace query is assumed. If tsize = -1, calculates optimal size for T. If tsize = -2, calculates minimal size for T.
outworkDouble precision workspace array, dimension (max(1, lwork)). On exit, if info = 0, work[0] contains optimal (or minimal) lwork.
inlworkThe dimension of the array work. lwork >= 1. If lwork = -1 or -2, then a workspace query is assumed. If lwork = -1, calculates optimal size for work. If lwork = -2, calculates minimal size for work.
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value.
void sgelq(
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 dgelq(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)#
DGELQ computes an LQ factorization of a real M-by-N matrix A:
A = ( L 0 ) * Q
where:
Q is a N-by-N orthogonal matrix; L is a lower-triangular M-by-M matrix; 0 is a M-by-(N-M) 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 below the diagonal contain the M-by-min(M,N) lower trapezoidal matrix L; the elements above 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. Remaining T contains part of the data structure used to represent Q.
intsizeIf tsize >= 5, the dimension of the array T. If tsize = -1 or -2, then a workspace query is assumed. If tsize = -1, calculates optimal size for T. If tsize = -2, calculates minimal size for T.
outworkDouble precision workspace array, dimension (max(1, lwork)). On exit, if info = 0, work[0] contains optimal (or minimal) lwork.
inlworkThe dimension of the array work. lwork >= 1. If lwork = -1 or -2, then a workspace query is assumed. If lwork = -1, calculates optimal size for work. If lwork = -2, calculates minimal size for work.
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value.
void dgelq(
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 cgelq(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)#
CGELQ computes an LQ factorization of a complex M-by-N matrix A:
A = ( L 0 ) * Q
where:
Q is a N-by-N orthogonal matrix; L is a lower-triangular M-by-M matrix; 0 is a M-by-(N-M) 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 below the diagonal contain the M-by-min(M,N) lower trapezoidal matrix L; the elements above 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. Remaining T contains part of the data structure used to represent Q.
intsizeIf tsize >= 5, the dimension of the array T. If tsize = -1 or -2, then a workspace query is assumed. If tsize = -1, calculates optimal size for T. If tsize = -2, calculates minimal size for T.
outworkSingle complex workspace array, dimension (max(1, lwork)). On exit, if info = 0, work[0] contains optimal (or minimal) lwork.
inlworkThe dimension of the array work. lwork >= 1. If lwork = -1 or -2, then a workspace query is assumed. If lwork = -1, calculates optimal size for work. If lwork = -2, calculates minimal size for work.
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value.
void cgelq(
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 zgelq(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)#
ZGELQ computes an LQ factorization of a complex M-by-N matrix A:
A = ( L 0 ) * Q
where:
Q is a N-by-N orthogonal matrix; L is a lower-triangular M-by-M matrix; 0 is a M-by-(N-M) 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 below the diagonal contain the M-by-min(M,N) lower trapezoidal matrix L; the elements above 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. Remaining T contains part of the data structure used to represent Q.
intsizeIf tsize >= 5, the dimension of the array T. If tsize = -1 or -2, then a workspace query is assumed. If tsize = -1, calculates optimal size for T. If tsize = -2, calculates minimal size for T.
outworkDouble complex workspace array, dimension (max(1, lwork)). On exit, if info = 0, work[0] contains optimal (or minimal) lwork.
inlworkThe dimension of the array work. lwork >= 1. If lwork = -1 or -2, then a workspace query is assumed. If lwork = -1, calculates optimal size for work. If lwork = -2, calculates minimal size for work.
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value.
void zgelq(
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
);