From a34ce9e3b768e36d3eed76ebc33ec7f86783d72a Mon Sep 17 00:00:00 2001 From: michel Date: Thu, 31 Jan 2008 10:58:58 +0000 Subject: [PATCH] v4 bug corrections for new diffuse algorithm git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1684 ac1d8469-bf42-47a9-8791-bf33cf982152 --- matlab/DiffuseKalmanSmoother1_Z.m | 6 +++--- matlab/DiffuseKalmanSmoother3_Z.m | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/matlab/DiffuseKalmanSmoother1_Z.m b/matlab/DiffuseKalmanSmoother1_Z.m index 30a4d8bfa..1beeba5a2 100644 --- a/matlab/DiffuseKalmanSmoother1_Z.m +++ b/matlab/DiffuseKalmanSmoother1_Z.m @@ -83,7 +83,7 @@ while rank(Pinf(:,:,t+1),crit1) & t crit, % step needed when Finf=0 - r0_0=transpose(Z(i,:))/Fstar(i,1)*v(i,1)+Li(:,:,i,1)'*r0_0; + r0_0=Z(i,:)'/Fstar(i,1)*v(i,1)+Li(:,:,i,1)'*r0_0; end end alphahat(:,1) = a1(:,1) + Pstar1(:,:,1)*r0_0 + Pinf1(:,:,1)*r1_0;