Skip to content
Snippets Groups Projects
Commit 9cf9c059 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by GitHub
Browse files

lyapunov_solver: Eliminate confusing transpose

The transpose was copied from `dsge_likelihood.m` in https://github.com/DynareTeam/dynare/commit/2c5b1fed2d43ffdeb60207295e0a03610864b487, while the calls in all other functions do not have it. As Q is symmetric, it does not matter
parent a51fef39
Branches
Tags
1 merge request!1504lyapunov_solver: Eliminate confusing transpose
...@@ -41,7 +41,7 @@ function P=lyapunov_solver(T,R,Q,DynareOptions) % --*-- Unitary tests --*-- ...@@ -41,7 +41,7 @@ function P=lyapunov_solver(T,R,Q,DynareOptions) % --*-- Unitary tests --*--
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if DynareOptions.lyapunov_fp == 1 if DynareOptions.lyapunov_fp == 1
P = lyapunov_symm(T,R*Q'*R',DynareOptions.lyapunov_fixed_point_tol,DynareOptions.qz_criterium,DynareOptions.lyapunov_complex_threshold, 3, DynareOptions.debug); P = lyapunov_symm(T,R*Q*R',DynareOptions.lyapunov_fixed_point_tol,DynareOptions.qz_criterium,DynareOptions.lyapunov_complex_threshold, 3, DynareOptions.debug);
elseif DynareOptions.lyapunov_db == 1 elseif DynareOptions.lyapunov_db == 1
[P, errorflag] = disclyap_fast(T,R*Q*R',DynareOptions.lyapunov_doubling_tol); [P, errorflag] = disclyap_fast(T,R*Q*R',DynareOptions.lyapunov_doubling_tol);
if errorflag %use Schur-based method if errorflag %use Schur-based method
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment