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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pablo Winant
preprocessor
Compare revisions
master to aux_vars_fix
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
albop/preprocessor
Select target project
No results found
aux_vars_fix
Select Git revision
Loading items
Swap
Target
Dynare/preprocessor
Select target project
normann/preprocessor
Dynare/preprocessor
FerhatMihoubi/preprocessor
MichelJuillard/preprocessor
sebastien/preprocessor
lnsongxf/preprocessor
albop/preprocessor
DoraK/preprocessor
amg/preprocessor
wmutschl/preprocessor
JohannesPfeifer/preprocessor
11 results
master
Select Git revision
Loading items
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
use front inserter instead of back inserter for unary/diff auxiliary equations
· 6a958311
Houtan Bastani
authored
7 years ago
6a958311
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/DynamicModel.cc
+3
-3
3 additions, 3 deletions
src/DynamicModel.cc
with
3 additions
and
3 deletions
src/DynamicModel.cc
View file @
6a958311
...
@@ -5443,7 +5443,7 @@ DynamicModel::substituteUnaryOps(StaticModel &static_model, vector<int> &eqnumbe
...
@@ -5443,7 +5443,7 @@ DynamicModel::substituteUnaryOps(StaticModel &static_model, vector<int> &eqnumbe
for (auto & neweq : neweqs)
for (auto & neweq : neweqs)
addEquation(neweq, -1);
addEquation(neweq, -1);
copy
(
neweqs
.
begin
(),
neweqs
.
end
(),
back
_inserter
(
diff_aux_equations
));
copy(neweqs.begin(), neweqs.end(),
front
_inserter(diff_aux_equations));
if (subst_table.size() > 0)
if (subst_table.size() > 0)
cout << "Substitution of Unary Ops: added " << neweqs.size() << " auxiliary variables and equations." << endl;
cout << "Substitution of Unary Ops: added " << neweqs.size() << " auxiliary variables and equations." << endl;
...
@@ -5483,7 +5483,7 @@ DynamicModel::substituteDiff(StaticModel &static_model, ExprNode::subst_table_t
...
@@ -5483,7 +5483,7 @@ DynamicModel::substituteDiff(StaticModel &static_model, ExprNode::subst_table_t
for (auto & neweq : neweqs)
for (auto & neweq : neweqs)
addEquation(neweq, -1);
addEquation(neweq, -1);
copy
(
neweqs
.
begin
(),
neweqs
.
end
(),
back
_inserter
(
diff_aux_equations
));
copy(neweqs.begin(), neweqs.end(),
front
_inserter(diff_aux_equations));
if (diff_subst_table.size() > 0)
if (diff_subst_table.size() > 0)
cout << "Substitution of Diff operator: added " << neweqs.size() << " auxiliary variables and equations." << endl;
cout << "Substitution of Diff operator: added " << neweqs.size() << " auxiliary variables and equations." << endl;
...
@@ -5492,7 +5492,7 @@ DynamicModel::substituteDiff(StaticModel &static_model, ExprNode::subst_table_t
...
@@ -5492,7 +5492,7 @@ DynamicModel::substituteDiff(StaticModel &static_model, ExprNode::subst_table_t
void
void
DynamicModel::combineDiffAuxEquations()
DynamicModel::combineDiffAuxEquations()
{
{
copy
(
diff_aux_equations
.
begin
(),
diff_aux_equations
.
end
(),
back
_inserter
(
aux_equations
));
copy(diff_aux_equations.begin(), diff_aux_equations.end(),
front
_inserter(aux_equations));
}
}
void
void
...
...
This diff is collapsed.
Click to expand it.