Generates all or part of the orthogonal/unitary matrix Q from a QL factorization determined by p?geqlf (unblocked algorithm).
call psorg2l(m, n, k, a, ia, ja, desca, tau, work, lwork, info)
call pdorg2l(m, n, k, a, ia, ja, desca, tau, work, lwork, info)
call pcung2l(m, n, k, a, ia, ja, desca, tau, work, lwork, info)
call pzung2l(m, n, k, a, ia, ja, desca, tau, work, lwork, info)
The p?org2l/p?ung2l routine generates an m-by-n real/complex distributed matrix Q denoting A(ia:ia+m-1, ja:ja+n-1) with orthonormal columns, which is defined as the last n columns of a product of k elementary reflectors of order m:
Q = H(k)*...*H(2)*H(1) as returned by p?geqlf.
(global) INTEGER.
The number of rows to be operated on, that is, the number of rows of the distributed submatrix Q. m ≥ 0.
(global) INTEGER.
The number of columns to be operated on, that is, the number of columns of the distributed submatrix Q. m ≥ n ≥ 0.
(global) INTEGER.
The number of elementary reflectors whose product defines the matrix Q. n≥ k ≥ 0.
REAL for psorg2l
DOUBLE PRECISION for pdorg2l
COMPLEX for pcung2l
COMPLEX*16 for pzung2l.
Pointer into the local memory to an array, DIMENSION (lld_a, LOCc(ja+n-1).
On entry, the j-th column must contain the vector that defines the elementary reflector H(j), ja+n-k ≤ j ≤ ja+n-k, as returned by p?geqlf in the k columns of its distributed matrix argument A(ia:*,ja+n-k:ja+n-1).
(global) INTEGER.
The row index in the global array A indicating the first row of sub(A).
(global) INTEGER.
The column index in the global array A indicating the first column of sub(A).
(global and local) INTEGER array of DIMENSION (dlen_). The array descriptor for the distributed matrix A.
(local)
REAL for psorg2l
DOUBLE PRECISION for pdorg2l
COMPLEX for pcung2l
COMPLEX*16 for pzung2l.
Array, DIMENSION LOCc(ja+n-1).
This array contains the scalar factor tau(j) of the elementary reflector H(j), as returned by p?geqlf.
(local)
REAL for psorg2l
DOUBLE PRECISION for pdorg2l
COMPLEX for pcung2l
COMPLEX*16 for pzung2l.
Workspace array, DIMENSION (lwork).
(local or global) INTEGER.
The dimension of the array work.
lwork is local input and must be at least lwork ≥ mpa0 + max(1, nqa0), where
iroffa = mod(ia-1, mb_a),
icoffa = mod(ja-1, nb_a),
iarow = indxg2p(ia, mb_a, myrow, rsrc_a, nprow),
iacol = indxg2p(ja, nb_a, mycol, csrc_a, npcol),
mpa0 = numroc(m+iroffa, mb_a, myrow, iarow, nprow),
nqa0 = numroc(n+icoffa, nb_a, mycol, iacol, npcol).
indxg2p and numroc are ScaLAPACK tool functions; myrow, mycol, nprow, and npcol can be determined by calling the subroutine blacs_gridinfo.
If lwork = -1, then lwork is global input and a workspace query is assumed; the routine only calculates the minimum and optimal size for all work arrays. Each of these values is returned in the first entry of the corresponding work array, and no error message is issued by pxerbla.
On exit, this array contains the local pieces of the m-by-n distributed matrix Q.
On exit, work(1) returns the minimal and optimal lwork.
(local) INTEGER.
= 0: successful exit
< 0: if the i-th argument is an array and the j-entry had an illegal value,
then info = - (i*100 +j),
if the i-th argument is a scalar and had an illegal value,
then info = -i.
Copyright © 1994 - 2011, Intel Corporation. All rights reserved.