You are here: Symbol Reference > MtxVec Namespace > Classes > TMtx Class > public > LQR Method > TMtx.LQR Method (TMtx, TMtx, TMtx, boolean)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtx.LQR Method (TMtx, TMtx, TMtx, boolean)

QR or LQ factorization.

Pascal
function LQR(const L: TMtx; const Q: TMtx; const R: TMtx; Minimized: boolean = true): TMtx; overload;

Performs QR or LQ factorization. If Rows is bigger or equal than Cols for the calling matrix, the linear system of equations is overdetermined and the method performs QR factorization. The matrix L is not used and can be nil. If Rows is smaller than Cols, the linear system equations is underdetermined and the method performs LQ factorization. The matrix R is not used and can be nil. If the Matrix Q is nil, then it's not explicitly formed. If the pointer is not nil, the full size Q is computed. If you do not want economy size L, Q and R, set MinSize to false. The calling matrix must have full rank. If the rank is not full, use the SVD method. If the Minimized parameter is false, the following holds true: 

 

A = Q*R A = L*Q
var L,Q,R,A: TMtx; begin CreateIt(Q,R,A); try A.SetIt(3,2,False,[1,2, 3,4, 3,3]); A.LQR(nil,Q,R,false); finally FreeIt(Q,R,A); end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!