org2r#

Functions

void sorg2r(
    const INT           m,
    const INT           n,
    const INT           k,
          f32* restrict A,
    const INT           lda,
    const f32* restrict tau,
          f32* restrict work,
          INT*          info
);
void sorg2r(const INT m, const INT n, const INT k, f32 *restrict A, const INT lda, const f32 *restrict tau, f32 *restrict work, INT *info)#

SORG2R generates an m by n real matrix Q with orthonormal columns, which is defined as the first n columns of a product of k elementary reflectors of order m.

Q = H(0) H(1) … H(k-1)

as returned by SGEQRF.

Parameters

in
m

The number of rows of Q. m >= 0.

in
n

The number of columns of Q. m >= n >= 0.

in
k

The number of elementary reflectors whose product defines Q. n >= k >= 0.

inout
A

On entry, the i-th column must contain the vector which defines the elementary reflector H(i), for i = 0,1,…,k-1, as returned by SGEQRF in the first k columns of its array argument A. On exit, the m-by-n matrix Q.

in
lda

The leading dimension of A. lda >= max(1, m).

in
tau

Array of dimension (k). TAU(i) must contain the scalar factor of the elementary reflector H(i), as returned by SGEQRF.

out
work

Workspace, dimension (n).

out
info

  • = 0: successful exit

  • < 0: if info = -i, the i-th argument had an illegal value.

Functions

void dorg2r(
    const INT           m,
    const INT           n,
    const INT           k,
          f64* restrict A,
    const INT           lda,
    const f64* restrict tau,
          f64* restrict work,
          INT*          info
);
void dorg2r(const INT m, const INT n, const INT k, f64 *restrict A, const INT lda, const f64 *restrict tau, f64 *restrict work, INT *info)#

DORG2R generates an m by n real matrix Q with orthonormal columns, which is defined as the first n columns of a product of k elementary reflectors of order m.

Q = H(0) H(1) … H(k-1)

as returned by DGEQRF.

Parameters

in
m

The number of rows of Q. m >= 0.

in
n

The number of columns of Q. m >= n >= 0.

in
k

The number of elementary reflectors whose product defines Q. n >= k >= 0.

inout
A

On entry, the i-th column must contain the vector which defines the elementary reflector H(i), for i = 0,1,…,k-1, as returned by DGEQRF in the first k columns of its array argument A. On exit, the m-by-n matrix Q.

in
lda

The leading dimension of A. lda >= max(1, m).

in
tau

Array of dimension (k). TAU(i) must contain the scalar factor of the elementary reflector H(i), as returned by DGEQRF.

out
work

Workspace, dimension (n).

out
info

  • = 0: successful exit

  • < 0: if info = -i, the i-th argument had an illegal value.