summaryrefslogtreecommitdiff
path: root/order.cpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2022-10-19 17:27:59 +0200
committerJaron Kent-Dobias <jaron@kent-dobias.com>2022-10-19 17:27:59 +0200
commite4d86723227dc3694bf502dfd492e8c2b1887c2c (patch)
treefa114525f8a24caad2425c3753c440e7520085e4 /order.cpp
parent6308773c0b6b745d49d20dc2afd6ab7ec63cb996 (diff)
downloadcode-master.tar.gz
code-master.tar.bz2
code-master.zip
Ran clang-format.HEADmaster
Diffstat (limited to 'order.cpp')
-rw-r--r--order.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/order.cpp b/order.cpp
index 64a35a3..6c61d3e 100644
--- a/order.cpp
+++ b/order.cpp
@@ -103,7 +103,7 @@ int main(int argc, char* argv[]) {
for (unsigned i = 0; i < G.edges.size(); i++) {
const AztecDiamond::Edge& e = G.edges[i];
const AztecDiamond::Vertex& vt = *e.tail;
- const AztecDiamond::Vertex& vh = *e.head;
+ const AztecDiamond::Vertex& vh = *e.head;
data_x[vt.index] += avgProbabilities[i] * (vt.coordinate[0] - vh.coordinate[0]);
data_y[vt.index] += avgProbabilities[i] * (vt.coordinate[1] - vh.coordinate[1]);
data_x[vh.index] += avgProbabilities[i] * (vt.coordinate[0] - vh.coordinate[0]);