Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dseries
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dynare
dseries
Commits
68f1f512
Commit
68f1f512
authored
Feb 25, 2016
by
Stéphane Adjemian (Hermes)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug (implicit loops in subsasgn).
parent
22f6e3f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/@dseries/subsasgn.m
src/@dseries/subsasgn.m
+1
-1
src/utilities/variables/build_list_of_variables_with_loops.m
src/utilities/variables/build_list_of_variables_with_loops.m
+1
-1
No files found.
src/@dseries/subsasgn.m
View file @
68f1f512
...
...
@@ -52,7 +52,7 @@ switch length(S)
error
([
'
dseries
:
:
subsasgn
:
You
cannot
use
implicit
loops
and
regular
expressions
in
the
same
rule
!
'
])
end
if
~
isempty
(
idArobase
)
elements
=
build_list_of_variables_with_loops
(
A
.
name
,
idArobase
,
element
,
{});
elements
=
build_list_of_variables_with_loops
(
{}
,
idArobase
,
element
,
{});
S
(
1
).
subs
=
replace_object_in_a_one_dimensional_cell_array
(
S
(
1
).
subs
,
elements
(
:
),
i
);
end
if
~
isempty
(
idBracket
.
open
)
...
...
src/utilities/variables/build_list_of_variables_with_loops.m
View file @
68f1f512
...
...
@@ -17,7 +17,7 @@ function list_of_variables = build_list_of_variables_with_loops(o_list_of_variab
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
checknames
=
isempty
(
o_list_of_variables
);
checknames
=
~
isempty
(
o_list_of_variables
);
NumberOfImplicitLoops
=
.
5
*
length
(
idArobase
);
...
...
Write
Preview
Markdown
is supported
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