Skip to content
Snippets Groups Projects
Verified Commit d55b6c68 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Octave compatibility fix: sum(…, 'omitnan') does not exist under Octave

Replace it by nansum from the statistics package.
parent 72ac69eb
Branches
Tags
No related merge requests found
......@@ -79,7 +79,11 @@ end
if updated_params_flag && ~isreal(params1)
info(1) = 23;
info(2) = sum(imag(params).^2,'omitnan');
if ~isoctave
info(2) = sum(imag(params).^2,'omitnan');
else
info(2) = nansum(imag(params).^2);
end
if M_.set_auxiliary_variables
ys = h_set_auxiliary_variables(ys,exo_ss,params);
end
......@@ -114,4 +118,4 @@ if steady_state_checkflag
info(1) = 22;
return
end
end
\ No newline at end of file
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment