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
);
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

in
m

The number of rows of the matrix A. m >= 0.

in
n

The number of columns of the matrix A. n >= 0.

inout
A

Double 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.

in
lda

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

out
T

Double 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.

in
tsize

If 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.

out
work

Double precision workspace array, dimension (max(1, lwork)). On exit, if info = 0, work[0] contains optimal (or minimal) lwork.

in
lwork

The 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.

out
info

  • = 0: successful exit

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

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
);
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

in
m

The number of rows of the matrix A. m >= 0.

in
n

The number of columns of the matrix A. n >= 0.

inout
A

Double 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.

in
lda

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

out
T

Double 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.

in
tsize

If 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.

out
work

Double precision workspace array, dimension (max(1, lwork)). On exit, if info = 0, work[0] contains optimal (or minimal) lwork.

in
lwork

The 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.

out
info

  • = 0: successful exit

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

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
);
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

in
m

The number of rows of the matrix A. m >= 0.

in
n

The number of columns of the matrix A. n >= 0.

inout
A

Single 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.

in
lda

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

out
T

Single 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.

in
tsize

If 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.

out
work

Single complex workspace array, dimension (max(1, lwork)). On exit, if info = 0, work[0] contains optimal (or minimal) lwork.

in
lwork

The 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.

out
info

  • = 0: successful exit

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

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
);
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

in
m

The number of rows of the matrix A. m >= 0.

in
n

The number of columns of the matrix A. n >= 0.

inout
A

Double 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.

in
lda

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

out
T

Double 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.

in
tsize

If 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.

out
work

Double complex workspace array, dimension (max(1, lwork)). On exit, if info = 0, work[0] contains optimal (or minimal) lwork.

in
lwork

The 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.

out
info

  • = 0: successful exit

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