summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2020-12-29 13:46:44 +0100
committerJaron Kent-Dobias <jaron@kent-dobias.com>2020-12-29 13:46:44 +0100
commita63b07dc5f3ce1c670d28cad6a9e50693fac2248 (patch)
tree595573391d187f398c9f17ecefff14ac194798f6
parentfb75f0d923ba89296fc49a20d5296309a0ce5b1e (diff)
downloadcode-a63b07dc5f3ce1c670d28cad6a9e50693fac2248.tar.gz
code-a63b07dc5f3ce1c670d28cad6a9e50693fac2248.tar.bz2
code-a63b07dc5f3ce1c670d28cad6a9e50693fac2248.zip
Fixed very stupid mistake.
-rw-r--r--langevin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/langevin.cpp b/langevin.cpp
index 5287cd7..3e03f76 100644
--- a/langevin.cpp
+++ b/langevin.cpp
@@ -98,7 +98,7 @@ std::complex<double> hamiltonian(const Tensor& J, const Vector& z) {
Matrix identity(unsigned N) {
Matrix I(N, N);
for (unsigned i = 0; i < N; i++) {
- I(i) = 1;
+ I(i, i) = 1;
}
return I;
}