Skip to content

Commit

Permalink
try #3
Browse files Browse the repository at this point in the history
  • Loading branch information
msuchard committed Jan 6, 2025
1 parent 4a3bae0 commit bd69d87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dr/app/beagle/tools/Partition.java
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,11 @@ private void traverse(NodeRef node, //

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

0 comments on commit bd69d87

Please sign in to comment.