Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
ad97361f
Verified
Commit
ad97361f
authored
2 years ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug under MATLAB < R2016b introduced in
906062cf
The logic for testing the MATLAB version was incorrect.
parent
dd7aa1e4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#7319
passed
2 years ago
Stage: build
Stage: test
Stage: pkg
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/+occbin/mkdatap_anticipated_2constraints_dyn.m
+1
-1
1 addition, 1 deletion
matlab/+occbin/mkdatap_anticipated_2constraints_dyn.m
with
1 addition
and
1 deletion
matlab/+occbin/mkdatap_anticipated_2constraints_dyn.m
+
1
−
1
View file @
ad97361f
...
...
@@ -98,7 +98,7 @@ if T_max > 0
% check if last binding regime was already stored
tmp
=
0
*
binding_indicator
;
tmp
(
1
:
end
-
T_max
+
1
,:)
=
binding_indicator
(
T_max
:
end
,:);
if
~
isoctave
&&
~
matlab_ver_less_than
(
'9.1'
)
% Automatic broadcasting was introduced in MATLAB R2016b
if
~
isoctave
&&
matlab_ver_less_than
(
'9.1'
)
% Automatic broadcasting was introduced in MATLAB R2016b
itmp
=
find
(
~
any
(
bsxfun
(
@
minus
,
dictionary
.
binding_indicator
(
1
:
length
(
tmp
)
*
2
,:),
tmp
(:))));
else
itmp
=
find
(
~
any
(
dictionary
.
binding_indicator
(
1
:
length
(
tmp
)
*
2
,:)
-
tmp
(:)));
...
...
This diff is collapsed.
Click to expand it.
Sébastien Villemot
@sebastien
mentioned in commit
4e3cd7a0
·
2 years ago
mentioned in commit
4e3cd7a0
mentioned in commit 4e3cd7a0f2ffa857cf68a04a611bd3a20cfcff1d
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment