Commit e3fbefc6 authored by Houtan Bastani's avatar Houtan Bastani

mjdgges: fix bug where qz_criterium was not taken into account if a threshold...

mjdgges: fix bug where qz_criterium was not taken into account if a threshold argument is also passed
parent f38f9b02
/* /*
* Copyright (C) 2006-2012 Dynare Team * Copyright (C) 2006-2016 Dynare Team
* *
* This file is part of Dynare. * This file is part of Dynare.
* *
...@@ -127,7 +127,7 @@ mexFunction(int nlhs, mxArray *plhs[], ...@@ -127,7 +127,7 @@ mexFunction(int nlhs, mxArray *plhs[],
b = mxGetPr(prhs[1]); b = mxGetPr(prhs[1]);
/* set criterium for stable eigenvalues */ /* set criterium for stable eigenvalues */
if (nrhs == 3 && mxGetM(prhs[2]) > 0) if (nrhs >= 3 && mxGetM(prhs[2]) > 0)
{ {
criterium = *mxGetPr(prhs[2]); criterium = *mxGetPr(prhs[2]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment