Commit 040fd01d authored by Daniel Le Berre's avatar Daniel Le Berre

Merge branch 'cherry-pick-d7168eec' into 'master'

this gives a more honest version of 'no division'

See merge request !3
parents 5b5b1a0a 9feb2296
Pipeline #379 failed with stages
in 2 minutes and 36 seconds
...@@ -131,7 +131,8 @@ public class MapPb implements IDataStructurePB { ...@@ -131,7 +131,8 @@ public class MapPb implements IDataStructurePB {
} }
} }
if (newcase) { if (newcase) {
BigInteger value = this.weightedLits.getCoef(0); return false;
/*BigInteger value = this.weightedLits.getCoef(0);
for (int i = 1; i < size(); i++) { for (int i = 1; i < size(); i++) {
if (!this.weightedLits.getCoef(i).equals(value)) { if (!this.weightedLits.getCoef(i).equals(value)) {
return false; return false;
...@@ -141,7 +142,7 @@ public class MapPb implements IDataStructurePB { ...@@ -141,7 +142,7 @@ public class MapPb implements IDataStructurePB {
BigInteger[] division = degree.divideAndRemainder(value); BigInteger[] division = degree.divideAndRemainder(value);
if (!division[1].equals(BigInteger.ZERO)) if (!division[1].equals(BigInteger.ZERO))
division[0] = division[0].add(BigInteger.ONE); division[0] = division[0].add(BigInteger.ONE);
this.cardDegree = division[0]; this.cardDegree = division[0];*/
} else } else
this.cardDegree = degree; this.cardDegree = degree;
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment