Skip to content

Commit

Permalink
[ctc] corrected bug in CtcEval (invert in vector case), thanks Julien!
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonRohou committed Aug 24, 2021
1 parent 5cf9223 commit b4c5a2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/core/contractors/dyn/codac_CtcEval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ namespace codac
w &= Interval(-BOUNDED_INFINITY,BOUNDED_INFINITY); // todo: remove this

t &= y.tdomain();
t &= y.invert(z, w ,t);
t &= y.invert(z, w, t);

if(!t.is_empty())
{
Expand Down Expand Up @@ -268,7 +268,7 @@ namespace codac

// 4. Evaluation contraction

t &= y.invert(z, w ,t);
t &= y.invert(z, w, t);
if(!t.is_empty())
z &= y.interpol(t, w);

Expand Down Expand Up @@ -395,7 +395,7 @@ namespace codac

Interval t_result = Interval::EMPTY_SET;

t &= y.invert(z);
t &= y.invert(z, t);
z &= y(t);

for(int i = 0 ; i < y.size() ; i++)
Expand Down Expand Up @@ -438,7 +438,7 @@ namespace codac
return;
}

t &= y.invert(z);
t &= y.invert(z, t);
z &= y(t);
}

Expand All @@ -456,7 +456,7 @@ namespace codac
return;
}

t &= y.invert(z);
t &= y.invert(z, t);
z &= y(t);
}
}
2 changes: 1 addition & 1 deletion tests/core/tests_ctc_chain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ using namespace std;
using namespace ibex;
using namespace codac;

#define VIBES_DRAWING 1
#define VIBES_DRAWING 0

TEST_CASE("CtcChain")
{
Expand Down

0 comments on commit b4c5a2c

Please sign in to comment.