Commit 60a19d81 authored by mak28ma's avatar mak28ma
Browse files

fixed a passge where x and y were exchanged, there is still at least 1

more error
parent 782ab48f
...@@ -80,8 +80,8 @@ public class Instance { ...@@ -80,8 +80,8 @@ public class Instance {
// check if this instance contains the features // check if this instance contains the features
if (containsFeature(features)) { if (containsFeature(features)) {
// if so then create a sprase matrix and put a 1 into the // if so then create a sprase matrix and put a 1 into the
// according slot // according slot ;x is always the cols
denseInstanceMatrix.add(denseIndices.x, denseIndices.y, 1); denseInstanceMatrix.add(denseIndices.y, denseIndices.x, 1);
} }
} }
// perform the kronecker expansion from the non sparse dense elements // perform the kronecker expansion from the non sparse dense elements
......
...@@ -107,12 +107,6 @@ public class MatrixUtil { ...@@ -107,12 +107,6 @@ public class MatrixUtil {
toAdd.add(firstBack); toAdd.add(firstBack);
//assert that the recalculated points are contained in the mapping //assert that the recalculated points are contained in the mapping
if(!previousMapping.getInverseMappingMap().containsKey(secondBack)){
System.out.println("yayo");
System.out.println(sizeBeforeExpansion);
System.out.println(previousMapping.getMappingMap().size());
System.out.println(secondBack);
}
} }
......
Supports Markdown
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