QRDecomposition#
-
inline Matrix22 QRDecomposition(const Matrix22 &m)#
Performs QR decomposition of a 2x2 matrix.
Decomposes the matrix into an orthogonal matrix Q. This implementation normalizes the first column and creates an orthogonal matrix using the perpendicular vector.
Note
This function only returns the Q component of the QR decomposition
- Parameters:
m – [in] Matrix to decompose
- Returns:
Orthogonal matrix Q from the QR decomposition