Skip to content

Commit

Permalink
remove silly debug code block
Browse files Browse the repository at this point in the history
  • Loading branch information
msuchard committed Jan 7, 2025
1 parent bf5031b commit 4477cc8
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/dr/app/beagle/tools/Partition.java
Original file line number Diff line number Diff line change
Expand Up @@ -326,21 +326,6 @@ private void traverse(NodeRef node, //
System.out.println("source length: " + probabilities[category[i]].length);
System.out.println("destination length: " + cProb.length);
}

// TODO Add matrix permute here to debug

boolean doSomethingStupid = false;

if (doSomethingStupid) {
double[] prob = probabilities[category[i]];
for (int k = 0; k < stateCount; ++k) {
for (int j = k + 1; j < stateCount; ++j) {
double p = prob[k * stateCount + j];
prob[k * stateCount + j] = prob[j * stateCount + k];
prob[j * stateCount + k] = p;
}
}
}

System.arraycopy(probabilities[category[i]], parentSequence[i] * stateCount, cProb, 0, stateCount);

Expand Down

0 comments on commit 4477cc8

Please sign in to comment.