From 3541fa50708470789592ce9ac1f3baf1ee35943f Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 5 Jan 2021 11:14:16 +0100 Subject: Cleaned up some notition. --- langevin.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/langevin.cpp b/langevin.cpp index 7590d2b..6f26278 100644 --- a/langevin.cpp +++ b/langevin.cpp @@ -40,7 +40,7 @@ Vector initializeVector(unsigned N, Rng& r) { return z; } -std::tuple, Vector, Matrix> hamGradHess(const Tensor& J, const Vector& z) { +std::tuple hamGradHess(const Tensor& J, const Vector& z) { Matrix Jz = contractDown(J, z); Vector Jzz = Jz * z; @@ -139,13 +139,13 @@ int main(int argc, char* argv[]) { } } - std::complex κ(Rκ, Iκ); + Scalar κ(Rκ, Iκ); double σ = sqrt(factorial(p) / (2.0 * pow(N, p - 1))); Rng r; complex_normal_distribution<> d(0, σ, κ); - Tensor J = generateCouplings, p>(N, d, r.engine()); + Tensor J = generateCouplings(N, d, r.engine()); Vector z = initializeVector(N, r); std::function findSaddle = [δ](double W, unsigned) { @@ -155,7 +155,7 @@ int main(int argc, char* argv[]) { Vector zm = langevin(J, z, T, γ, findSaddle, r); - std::complex H; + Scalar H; Vector dH; std::tie(H, dH, std::ignore) = hamGradHess(J, zm); -- cgit v1.2.3-70-g09d2