From 20e5d76d54c1b0d5c6f22e67ac42ff84c0937cb7 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Thu, 16 Jun 2016 22:03:10 +0200 Subject: [PATCH] Fix missing negation in check for fast Kalman filter --- matlab/dynare_estimation_init.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/dynare_estimation_init.m b/matlab/dynare_estimation_init.m index 872861aaf..805009a1e 100644 --- a/matlab/dynare_estimation_init.m +++ b/matlab/dynare_estimation_init.m @@ -105,7 +105,7 @@ end % fast kalman filter is only available with kalman_algo == 1,3 if options_.fast_kalman_filter - if (options_.kalman_algo == 1 || options_.kalman_algo == 3) + if ~(options_.kalman_algo == 1 || options_.kalman_algo == 3) error(['estimation option conflict: fast_kalman_filter is only available ' ... 'with kalman_algo = 1 or kalman_algo = 3']) elseif options_.block