Skip to content
Snippets Groups Projects
Verified Commit a52915a9 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

evaluate_static_model.m: provide jacobian output with bytecode

Set to NaN for block

(cherry picked from commit 1174cad1)
parent 428259ad
Branches
Tags
No related merge requests found
Pipeline #6239 failed
......@@ -39,8 +39,14 @@ function [residuals,check1,jacob] = evaluate_static_model(ys,exo_ss,params,M,opt
check1 = 0;
if options.bytecode
residuals = bytecode('evaluate','static',ys,...
if nargout<3
[residuals]= bytecode('evaluate','static',ys,...
exo_ss, params, ys, 1);
else
[residuals, junk]= bytecode('evaluate','static',ys,...
exo_ss, params, ys, 1);
jacob = junk.g1;
end
else
fh_static = str2func([M.fname '.static']);
if options.block
......@@ -60,6 +66,9 @@ else
[~, ~, T] = feval(fh_static,b,ys,exo_ss,params,T);
end
end
if nargout==3
jacob=NaN(length(ys));
end
else
if nargout<3
residuals = feval(fh_static,ys,exo_ss,params);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment