Fix an error in the computation of interactions.

This commit is contained in:
2018-03-26 17:18:03 +02:00
parent 0f699c1881
commit 8b4d29786b

View File

@@ -121,7 +121,7 @@ static Animation *getFullyConnectedAnimation(const fmri::LayerData &prevState, c
result.reserve(desiredSize);
const auto normalizer = getNodeNormalizer(prevState);
for (auto i : idx) {
result.emplace_back(interactions[i], make_pair(i / shape[0] / normalizer, i % shape[0]));
result.emplace_back(interactions[i], make_pair((i % shape[1]) / normalizer, i / shape[1]));
}
return new ActivityAnimation(result, prevPositions.data(), curPositions.data());