summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2021-01-14 16:01:16 +0100
committerJaron Kent-Dobias <jaron@kent-dobias.com>2021-01-14 16:01:16 +0100
commit3a75fbf2c71713e2700ccb569ddef53132b65d37 (patch)
treef1a6621b8d23ddbddb6f45a4a0f95bb97ea069a2
parent6ae3cc6b8105c37c6fea840af2395e1972812387 (diff)
downloadcode-3a75fbf2c71713e2700ccb569ddef53132b65d37.tar.gz
code-3a75fbf2c71713e2700ccb569ddef53132b65d37.tar.bz2
code-3a75fbf2c71713e2700ccb569ddef53132b65d37.zip
Tiny formatting change.
-rw-r--r--p-spin.hpp2
1 files changed, 1 insertions, 1 deletions
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<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;