pub struct QR<T> {
    pub q: Matrix<T>,
    pub r: Matrix<T>,
}
Expand description

The result of unpacking a QR decomposition.

Let A denote the m x n matrix given by A = QR. Then Q is an m x m orthogonal matrix, and R is an m x n upper trapezoidal matrix .

More precisely, if m > n, then we have the decomposition

A = QR = Q [ R1 ]
           [  0 ]

where R1 is an n x n upper triangular matrix. On the other hand, if m < n, we have

A = QR = Q [ R1 R2 ]

where R1 is an m x m upper triangular matrix and R2 is an m x (n - m) general matrix.

To actually compute the QR decomposition, see Householder QR.

Fields

q: Matrix<T>

The orthogonal matrix Q in the decomposition A = QR.

r: Matrix<T>

The upper-trapezoidal matrix R in the decomposition A = QR.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.