Skip to content

Commit

Permalink
Enable ExpressionIfThenElse::Substitute(const Substitution& s)
Browse files Browse the repository at this point in the history
  • Loading branch information
soonho-tri committed Feb 2, 2017
1 parent 1608668 commit 63bbc3b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drake/common/symbolic_expression_cell.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1246,10 +1246,8 @@ double ExpressionIfThenElse::Evaluate(const Environment& env) const {
}

Expression ExpressionIfThenElse::Substitute(const Substitution& s) const {
// TODO(soonho): implement this.
throw runtime_error("Not yet implemented.");
// return if_then_else(f_cond_.Substitute(s), e_then_.Substitute(s),
// e_else_.Substitute(s));
return if_then_else(f_cond_.Substitute(s), e_then_.Substitute(s),
e_else_.Substitute(s));
}

ostream& ExpressionIfThenElse::Display(ostream& os) const {
Expand Down

0 comments on commit 63bbc3b

Please sign in to comment.