ungql#
Functions
-
void cungql(const INT m, const INT n, const INT k, c64 *restrict A, const INT lda, const c64 *restrict tau, c64 *restrict work, const INT lwork, INT *info)#
CUNGQL generates an M-by-N complex matrix Q with orthonormal columns, which is defined as the last N columns of a product of K elementary reflectors of order M.
Q = H(k-1) … H(1) H(0)
as returned by CGEQLF.
Parameters
inmThe number of rows of Q. m >= 0.
innThe number of columns of Q. m >= n >= 0.
inkThe number of elementary reflectors whose product defines Q. n >= k >= 0.
inoutAOn entry, the (n-k+i)-th column must contain the vector which defines the elementary reflector H(i), for i = 0,…,k-1, as returned by CGEQLF. On exit, the m-by-n matrix Q.
inldaThe leading dimension of A. lda >= max(1, m).
intauArray of dimension (k). TAU(i) is the scalar factor of H(i), as returned by CGEQLF.
outworkWorkspace, dimension (max(1, lwork)). On exit, work[0] contains the optimal lwork.
inlworkDimension of work. lwork >= max(1, n). For optimal performance, lwork >= n*nb. If lwork == -1, workspace query only.
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value.
void cungql(
const INT m,
const INT n,
const INT k,
c64* restrict A,
const INT lda,
const c64* restrict tau,
c64* restrict work,
const INT lwork,
INT* info
);
Functions
-
void zungql(const INT m, const INT n, const INT k, c128 *restrict A, const INT lda, const c128 *restrict tau, c128 *restrict work, const INT lwork, INT *info)#
ZUNGQL generates an M-by-N complex matrix Q with orthonormal columns, which is defined as the last N columns of a product of K elementary reflectors of order M.
Q = H(k-1) … H(1) H(0)
as returned by ZGEQLF.
Parameters
inmThe number of rows of Q. m >= 0.
innThe number of columns of Q. m >= n >= 0.
inkThe number of elementary reflectors whose product defines Q. n >= k >= 0.
inoutAOn entry, the (n-k+i)-th column must contain the vector which defines the elementary reflector H(i), for i = 0,…,k-1, as returned by ZGEQLF. On exit, the m-by-n matrix Q.
inldaThe leading dimension of A. lda >= max(1, m).
intauArray of dimension (k). TAU(i) is the scalar factor of H(i), as returned by ZGEQLF.
outworkWorkspace, dimension (max(1, lwork)). On exit, work[0] contains the optimal lwork.
inlworkDimension of work. lwork >= max(1, n). For optimal performance, lwork >= n*nb. If lwork == -1, workspace query only.
outinfo= 0: successful exit
< 0: if info = -i, the i-th argument had an illegal value.
void zungql(
const INT m,
const INT n,
const INT k,
c128* restrict A,
const INT lda,
const c128* restrict tau,
c128* restrict work,
const INT lwork,
INT* info
);