-
Notifications
You must be signed in to change notification settings - Fork 57
Description
Introduce an option to utilize the Gram-Schmidt process for QR matrix decomposition alongside the existing Householder transformation method. This would allow users to choose the decomposition method based on their specific requirements, providing flexibility and potentially improving the overall usability of the library.
The Gram-Schmidt process and the Householder transformation are both methods used for QR matrix decomposition, but they differ in their computational approach and resulting matrix dimensions:
-
Gram-Schmidt Process:
- Input: An
$( m \times n $ ) matrix, where$m$ is the number of rows and$n$ is the number of columns. - Output: Two matrices
$Q$ and$R$ , where$Q$ is an$m \times n$ orthogonal matrix (i.e.,$Q^TQ = I$ ) and$R$ is an$n \times n$ upper triangular matrix.
- Input: An
-
Householder Transformation:
- Input: An
$m \times n$ matrix, where$m$ is the number of rows and$n$ is the number of columns. - Output: Two matrices
$Q$ and$R$ , where$Q$ is an$m \times m$ orthogonal matrix (i.e.,$Q^TQ = I$ ) and$R$ is an$m \times n$ upper triangular matrix.
- Input: An
In summary, the main difference lies in the dimensions of the orthogonal matrix