sorgbr - generate one of the real orthogonal matrices Q or P**T determined by SGEBRD when reducing a real matrix A to bidiagonal form
SUBROUTINE SORGBR( VECT, M, N, K, A, LDA, TAU, WORK, LWORK, INFO) CHARACTER * 1 VECT INTEGER M, N, K, LDA, LWORK, INFO REAL A(LDA,*), TAU(*), WORK(*)
SUBROUTINE SORGBR_64( VECT, M, N, K, A, LDA, TAU, WORK, LWORK, INFO) CHARACTER * 1 VECT INTEGER*8 M, N, K, LDA, LWORK, INFO REAL A(LDA,*), TAU(*), WORK(*)
SUBROUTINE ORGBR( VECT, M, [N], K, A, [LDA], TAU, [WORK], [LWORK], * [INFO]) CHARACTER(LEN=1) :: VECT INTEGER :: M, N, K, LDA, LWORK, INFO REAL, DIMENSION(:) :: TAU, WORK REAL, DIMENSION(:,:) :: A
SUBROUTINE ORGBR_64( VECT, M, [N], K, A, [LDA], TAU, [WORK], [LWORK], * [INFO]) CHARACTER(LEN=1) :: VECT INTEGER(8) :: M, N, K, LDA, LWORK, INFO REAL, DIMENSION(:) :: TAU, WORK REAL, DIMENSION(:,:) :: A
#include <sunperf.h>
void sorgbr(char vect, int m, int n, int k, float *a, int lda, float *tau, int *info);
void sorgbr_64(char vect, long m, long n, long k, float *a, long lda, float *tau, long *info);
sorgbr generates one of the real orthogonal matrices Q or P**T
determined by SGEBRD when reducing a real matrix A to bidiagonal
form: A = Q * B * P**T. Q and P**T are defined as products of
elementary reflectors H(i)
or G(i)
respectively.
If VECT = 'Q', A is assumed to have been an M-by-K matrix, and Q is of order M:
if m >= k, Q = H(1)
H(2)
. . . H(k)
and SORGBR returns the first n
columns of Q, where m >= n >= k;
if m < k, Q = H(1)
H(2)
. . . H(m-1)
and SORGBR returns Q as an
M-by-M matrix.
If VECT = 'P', A is assumed to have been a K-by-N matrix, and P**T is of order N:
if k < n, P**T = G(k)
. . . G(2)
G(1)
and SORGBR returns the first m
rows of P**T, where n >= m >= k;
if k >= n, P**T = G(n-1)
. . . G(2)
G(1)
and SORGBR returns P**T as
an N-by-N matrix.
= 'Q': generate Q;
= 'P': generate P**T.
TAU(i)
must contain the scalar factor of the elementary
reflector H(i)
or G(i), which determines Q or P**T, as
returned by SGEBRD in its array argument TAUQ or TAUP.
WORK(1)
returns the optimal LWORK.
If LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of the WORK array, returns this value as the first entry of the WORK array, and no error message related to LWORK is issued by XERBLA.
= 0: successful exit
< 0: if INFO = -i, the i-th argument had an illegal value