naginterfaces.library.lapackeig.dgelqf¶
- naginterfaces.library.lapackeig.dgelqf(a)[source]¶
dgelqf
computes the factorization of a real matrix.For full information please refer to the NAG Library document for f08ah
https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/f08/f08ahf.html
- Parameters
- afloat, array-like, shape
The matrix .
- Returns
- afloat, ndarray, shape
If , the elements above the diagonal are overwritten by details of the orthogonal matrix and the lower triangle is overwritten by the corresponding elements of the lower triangular matrix .
If , the strictly upper triangular part is overwritten by details of the orthogonal matrix and the remaining elements are overwritten by the corresponding elements of the lower trapezoidal matrix .
- taufloat, ndarray, shape
Further details of the orthogonal matrix .
- Raises
- NagValueError
- (errno )
On entry, error in parameter .
Constraint: .
- (errno )
On entry, error in parameter .
Constraint: .
- Notes
dgelqf
forms the factorization of an arbitrary rectangular real matrix. No pivoting is performed.If , the factorization is given by:
where is an lower triangular matrix and is an orthogonal matrix. It is sometimes more convenient to write the factorization as
which reduces to
where consists of the first rows of , and the remaining rows.
If , is trapezoidal, and the factorization can be written
where is lower triangular and is rectangular.
The factorization of is essentially the same as the factorization of , since
The matrix is not formed explicitly but is represented as a product of elementary reflectors (see the F08 Introduction for details). Functions are provided to work with in this representation (see Further Comments).
Note also that for any , the information returned in the first rows of the array represents an factorization of the first rows of the original matrix .