From 1732db842f4baba16cb25f3e85a9842442021e76 Mon Sep 17 00:00:00 2001 From: Michel Juillard Date: Sat, 14 Jul 2012 21:07:05 +0200 Subject: [PATCH] fixing bug in evaluating rank condition for BK when using check (introduced in commit 4d51f38bd2729ebc8482629e4b1d2bd50af4ea43) --- matlab/dyn_first_order_solver.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/dyn_first_order_solver.m b/matlab/dyn_first_order_solver.m index e7f949402..8309d1fa3 100644 --- a/matlab/dyn_first_order_solver.m +++ b/matlab/dyn_first_order_solver.m @@ -188,7 +188,7 @@ if (task ~= 1 && ((DynareOptions.dr_cycle_reduction == 1 && info ==1) || DynareO nba = nd-sdim; if task == 1 - dr.rank = rank(w(1:nyf,nd-nyf+1:end)); + dr.rank = rank(w(npred+nboth+1:end,npred+nboth+1:end)); % Under Octave, eig(A,B) doesn't exist, and % lambda = qz(A,B) won't return infinite eigenvalues if ~exist('OCTAVE_VERSION')