Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
preprocessor
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
preprocessor
Commits
28f89261
Verified
Commit
28f89261
authored
3 years ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Minor simplification of SymbolTable::addDiffAuxiliaryVar()
For symmetry with SymbolTable::addUnaryOpAuxiliaryVar().
parent
a93e264c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/SymbolTable.cc
+0
-6
0 additions, 6 deletions
src/SymbolTable.cc
src/SymbolTable.hh
+1
-2
1 addition, 2 deletions
src/SymbolTable.hh
with
1 addition
and
8 deletions
src/SymbolTable.cc
+
0
−
6
View file @
28f89261
...
@@ -594,12 +594,6 @@ SymbolTable::addDiffAuxiliaryVar(int index, expr_t expr_arg, int orig_symb_id, i
...
@@ -594,12 +594,6 @@ SymbolTable::addDiffAuxiliaryVar(int index, expr_t expr_arg, int orig_symb_id, i
return
symb_id
;
return
symb_id
;
}
}
int
SymbolTable
::
addDiffAuxiliaryVar
(
int
index
,
expr_t
expr_arg
)
noexcept
(
false
)
{
return
addDiffAuxiliaryVar
(
index
,
expr_arg
,
-
1
,
0
);
}
int
int
SymbolTable
::
addUnaryOpAuxiliaryVar
(
int
index
,
expr_t
expr_arg
,
string
unary_op
,
int
orig_symb_id
,
int
orig_lag
)
noexcept
(
false
)
SymbolTable
::
addUnaryOpAuxiliaryVar
(
int
index
,
expr_t
expr_arg
,
string
unary_op
,
int
orig_symb_id
,
int
orig_lag
)
noexcept
(
false
)
{
{
...
...
This diff is collapsed.
Click to expand it.
src/SymbolTable.hh
+
1
−
2
View file @
28f89261
...
@@ -343,8 +343,7 @@ public:
...
@@ -343,8 +343,7 @@ public:
diffLead increases it). */
diffLead increases it). */
pair
<
int
,
int
>
unrollDiffLeadLagChain
(
int
symb_id
,
int
lag
)
const
noexcept
(
false
);
pair
<
int
,
int
>
unrollDiffLeadLagChain
(
int
symb_id
,
int
lag
)
const
noexcept
(
false
);
//! Adds an auxiliary variable when the diff operator is encountered
//! Adds an auxiliary variable when the diff operator is encountered
int
addDiffAuxiliaryVar
(
int
index
,
expr_t
expr_arg
)
noexcept
(
false
);
int
addDiffAuxiliaryVar
(
int
index
,
expr_t
expr_arg
,
int
orig_symb_id
=
-
1
,
int
orig_lag
=
0
)
noexcept
(
false
);
int
addDiffAuxiliaryVar
(
int
index
,
expr_t
expr_arg
,
int
orig_symb_id
,
int
orig_lag
)
noexcept
(
false
);
//! Takes care of timing between diff statements
//! Takes care of timing between diff statements
int
addDiffLagAuxiliaryVar
(
int
index
,
expr_t
expr_arg
,
int
orig_symb_id
,
int
orig_lag
)
noexcept
(
false
);
int
addDiffLagAuxiliaryVar
(
int
index
,
expr_t
expr_arg
,
int
orig_symb_id
,
int
orig_lag
)
noexcept
(
false
);
//! Takes care of timing between diff statements
//! Takes care of timing between diff statements
...
...
This diff is collapsed.
Click to expand it.
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