From 5292ced463f36355bed129970b1c517309b5a9a5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Fri, 22 Mar 2024 15:47:32 +0100
Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20dyn=5Ffirst=5Forder=5Fsolver:=20?=
 =?UTF-8?q?typos=20in=20error=20message=20and=20comments?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[skip ci]
---
 matlab/stochastic_solver/dyn_first_order_solver.m | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/matlab/stochastic_solver/dyn_first_order_solver.m b/matlab/stochastic_solver/dyn_first_order_solver.m
index 8ec20650aa..3ec2d2b6b3 100644
--- a/matlab/stochastic_solver/dyn_first_order_solver.m
+++ b/matlab/stochastic_solver/dyn_first_order_solver.m
@@ -21,7 +21,7 @@ function [dr, info] = dyn_first_order_solver(jacobia, M_, dr, options_, task)
 %                                     info=5 -> Blanchard and Kahn conditions are not satisfied: indeterminacy due to rank failure,
 %                                     info=7 -> One of the eigenvalues is close to 0/0 (infinity of complex solutions)
 
-% Copyright © 2001-2023 Dynare Team
+% Copyright © 2001-2024 Dynare Team
 %
 % This file is part of Dynare.
 %
@@ -136,18 +136,18 @@ else
     aa = jacobia;
 end
 
-A = aa(:,index_m);  % Jacobain matrix for lagged endogeneous variables
-B(:,cols_b) = aa(:,index_c);  % Jacobian matrix for contemporaneous endogeneous variables
-C = aa(:,index_p);  % Jacobain matrix for led endogeneous variables
+A = aa(:,index_m);  % Jacobian matrix for lagged endogenous variables
+B(:,cols_b) = aa(:,index_c);  % Jacobian matrix for contemporaneous endogenous variables
+C = aa(:,index_p);  % Jacobian matrix for led endogenous variables
 
 info = 0;
 if task ~= 1 && (options_.dr_cycle_reduction || options_.dr_logarithmic_reduction)
     if n_current < M_.endo_nbr
         if options_.dr_cycle_reduction
-            error(['The cycle reduction algorithme can''t be used when the ' ...
+            error(['The cycle reduction algorithm can''t be used when the ' ...
                    'coefficient matrix for current variables isn''t invertible'])
         elseif options_.dr_logarithmic_reduction
-            error(['The logarithmic reduction algorithme can''t be used when the ' ...
+            error(['The logarithmic reduction algorithm can''t be used when the ' ...
                    'coefficient matrix for current variables isn''t invertible'])
         end
     end
@@ -160,7 +160,7 @@ if task ~= 1 && (options_.dr_cycle_reduction || options_.dr_logarithmic_reductio
         [ghx, info] = logarithmic_reduction(C1, B1, A1, options_.dr_logarithmic_reduction_tol, options_.dr_logarithmic_reduction_maxiter);
     end
     if info
-        % cycle_reduction or logarithmic redution failed and set info
+        % cycle_reduction or logarithmic reduction failed and set info
         return
     end
     ghx = ghx(:,index_m);
-- 
GitLab