diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2020-02-26 00:00:16 -0500 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2020-02-26 00:00:16 -0500 |
commit | 6461165f4daea01c5baa1d969ee5c726fb4c559e (patch) | |
tree | 9946c3a04f5dd62e0cc78fcd34089613d0dd0c48 /vector.hpp | |
parent | 98350b34d1826e1d6687f18c45b0fbc6a3488742 (diff) | |
download | space_wolff-6461165f4daea01c5baa1d969ee5c726fb4c559e.tar.gz space_wolff-6461165f4daea01c5baa1d969ee5c726fb4c559e.tar.bz2 space_wolff-6461165f4daea01c5baa1d969ee5c726fb4c559e.zip |
Finished fixes of new features.
Diffstat (limited to 'vector.hpp')
-rw-r--r-- | vector.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,7 @@ template <class T, int D> Vector<T, D> diff(T L, Vector<T, D> v1, Vector<T, D> v Vector<T, D> v; for (unsigned i = 0; i < D; i++) { - v(i) = std::abs(mod(v1(i), L) - mod(v2(i), L)); + v(i) = mod(std::abs(v1(i) - v2(i)), L); if (v(i) > L / 2) { v(i) = L - v(i); } |