pub fn qr_decomposition<T: Real>(
matrix: &Matrix<T>,
) -> Option<QRDecomposition<T>>
Expand description
Computes a QR decomposition of a MxN matrix where M >= N.
For an input matrix A, decomposes this matrix into a product of QR, where Q is an orthogonal matrix and R is an upper triangular matrix (all entries below the diagonal are 0), and QR = A.
If the input matrix has more columns than rows, returns None.
ยงWarning
With some uses of this function the Rust compiler gets confused about what type T
should be and you will get the error:
overflow evaluating the requirement
&'a _: easy_ml::numeric::RealByValue<_, _>
In this case you need to manually specify the type of T by using the
turbofish syntax like:
linear_algebra::qr_decomposition::<f32>(&matrix)