From 3a75fbf2c71713e2700ccb569ddef53132b65d37 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 14 Jan 2021 16:01:16 +0100 Subject: Tiny formatting change. --- p-spin.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p-spin.hpp b/p-spin.hpp index 91e0152..3ef10e7 100644 --- a/p-spin.hpp +++ b/p-spin.hpp @@ -36,9 +36,9 @@ std::tuple WdW(const Tensor& J, const Vector& z) { Matrix ddH; std::tie(std::ignore, dH, ddH) = hamGradHess(J, z); - double a = z.squaredNorm(); Vector dzdt = project(z, dH.conjugate()); + double a = z.squaredNorm(); Scalar A = (Scalar)(z.transpose() * dzdt) / a; Scalar B = dH.dot(z) / a; -- cgit v1.2.3-70-g09d2