RQ decomposition using Givens rotations

Calculates RQ decomposition of A = RQ (3x3)
443 download
Aggiornato 10 lug 2015

Visualizza la licenza

rqGivens Calculates RQ decomposition of A = RQ
Syntax:
[R, Q] = rqGivens(A);

Input:
A - 3-by-3 matrix of rank 3

Output:
R - Upper triangular matrix (3-by-3)
Q - Orthogonal matrix (3-by-3)

Description:
This function calculates the 3-dimensional RQ decomposition of A using
Givens rotations (equal to Euler rotations) Gx, Gy Gz:

Gx = [ 1 0 0;
0 c -s;
0 s c];

Gy = [ c 0 s;
0 1 0;
-s 0 c];

Gz = [ c -s 0;
s c 0;
0 0 1];

Ax = A * Gx to set Ax(3,2) to zero.
Axy = Ax * Gy to set Axy(3,1) to zero.
R = Axyz = Axy * Gz to set Axyz(2,1) to zero.

R = A * Gx * Gy * Gz
-> R * Gz' * Gy' * Gx' = A
-> Q = Gz' * Gy' * Gx'

See also:
- https://en.wikipedia.org/wiki/Givens_rotation#Dimension_3
- Hartley, Zisserman - Multiple View Geometry in Computer Vision
http://www.amazon.com/dp/0521540518 (Appendix 4, A4.1.1, page 579)

Cita come

Lars Meinel (2025). RQ decomposition using Givens rotations (https://it.mathworks.com/matlabcentral/fileexchange/52065-rq-decomposition-using-givens-rotations), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2013b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Polynomials in Help Center e MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
2015.7.10.0