Commit e8a193bb authored by George Perendia's avatar George Perendia
Browse files

Track #21: Add partial information: Correcting bug stemming from the...

Track #21: Add partial information: Correcting bug stemming from the differences in QZ calculation under Octave and Matlab: modified PI_gensys to use C.Sims' Lapack zgges based qzcomplex() qz decomposition routine under Octave which gives nearly identical complex results to Matlab QZ (except for transpose of q matrix and few sign changes in the output matrices)
parent 057908ba
......@@ -153,7 +153,16 @@ end
G0pi=eye(n+FL_RANK+NX);
try
[a b q z v]=qz(G0pi,G1pi);
% In Matlab: [aa bb q z v w] = qz(a,b) s.t. qaz = aa, qbz = bb %
% In Octave: [aa bb q z v w] = qz(a,b) s.t. q'az = aa, q'bz=bb %
% and qzcomplex() extension based on lapack zgges produces same
% qz output for Octave as Matlab qz() does for Matlab thus:
if exist('OCTAVE_VERSION')
[a b q z]=qzcomplex(G0pi,G1pi);
q=q';
else
[a b q z]=qz(G0pi,G1pi);
end
catch
try
lerror=lasterror;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment