diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2021-01-14 16:01:16 +0100 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2021-01-14 16:01:16 +0100 |
commit | 3a75fbf2c71713e2700ccb569ddef53132b65d37 (patch) | |
tree | f1a6621b8d23ddbddb6f45a4a0f95bb97ea069a2 | |
parent | 6ae3cc6b8105c37c6fea840af2395e1972812387 (diff) | |
download | code-3a75fbf2c71713e2700ccb569ddef53132b65d37.tar.gz code-3a75fbf2c71713e2700ccb569ddef53132b65d37.tar.bz2 code-3a75fbf2c71713e2700ccb569ddef53132b65d37.zip |
Tiny formatting change.
-rw-r--r-- | p-spin.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -36,9 +36,9 @@ std::tuple<double, Vector> 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; |