Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marco Ratto
dynare
Commits
a308a17d
Commit
a308a17d
authored
Jan 25, 2022
by
Marco Ratto
Browse files
trap the case when Q is singular
parent
e464d2e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/compute_Pinf_Pstar.m
View file @
a308a17d
...
...
@@ -48,6 +48,12 @@ function [Pstar,Pinf] = compute_Pinf_Pstar(mf,T,R,Q,qz_criterium, restrict_colum
% along with Dynare. If not, see <https://www.gnu.org/licenses/>.
np
=
size
(
T
,
1
);
if
not
(
any
(
any
(
Q
)))
Pstar
=
T
*
0
;
Pinf
=
T
*
0
;
return
end
if
nargin
==
6
indx
=
restrict_columns
;
indx0
=
find
(
~
ismember
([
1
:
np
],
indx
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment