From ed5a71fbf112b8068223939bc70fd1620db9c277 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Sun, 18 Feb 2018 18:32:08 +0100 Subject: [PATCH] Fix from/to calculation. --- src/visualisations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/visualisations.cpp b/src/visualisations.cpp index 5574e6d..3eac6d3 100644 --- a/src/visualisations.cpp +++ b/src/visualisations.cpp @@ -60,7 +60,7 @@ computeActivityStrengths(const LayerData &prevState, const LayerInfo &layer) vector result; result.reserve(desiredSize); for (auto i : Range(desiredSize)) { - result.emplace_back(interactions[idx[i]], make_pair(idx[i] % shape[0], idx[i] / shape[0])); + result.emplace_back(interactions[idx[i]], make_pair(idx[i] / shape[0], idx[i] % shape[0])); } return result;