summaryrefslogtreecommitdiff
path: root/tensor.hpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2024-04-02 17:55:02 +0200
committerJaron Kent-Dobias <jaron@kent-dobias.com>2024-04-02 17:55:02 +0200
commited7f5a872db4e5fa9f115e4d196567678fcb6711 (patch)
tree1a78caa3e689bf5a6948bc4957d6683d1f5c2d66 /tensor.hpp
parent92c319247fae9d8be3f3291d6fa64266224ef61c (diff)
downloadcode-ed7f5a872db4e5fa9f115e4d196567678fcb6711.tar.gz
code-ed7f5a872db4e5fa9f115e4d196567678fcb6711.tar.bz2
code-ed7f5a872db4e5fa9f115e4d196567678fcb6711.zip
Changed convention to match Fyodorov.
Diffstat (limited to 'tensor.hpp')
-rw-r--r--tensor.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensor.hpp b/tensor.hpp
index 58c2434..7f98d02 100644
--- a/tensor.hpp
+++ b/tensor.hpp
@@ -88,7 +88,7 @@ Tensor<p> generateCouplings(unsigned N, unsigned M, Distribution d, Generator& r
template <int p, class Generator>
Tensor<p> generateRealPSpinCouplings(unsigned N, unsigned M, Generator& r) {
- Real σp = sqrt(factorial(p-1) / ((Real)2 * pow(N, p - 1)));
+ Real σp = sqrt(factorial(p-1) / ((Real)pow(N, p - 1)));
return generateCouplings<p>(N, M, std::normal_distribution<Real>(0, σp), r);
}