make saving previous GtKG direction more obvious

This commit is contained in:
jan 2022-11-22 22:23:00 -08:00
parent ff395277b0
commit b7bd825bce

View File

@ -577,6 +577,7 @@ def eigsolve(
gamma = 0.0 gamma = 0.0
else: else:
gamma = traceGtKG / prev_traceGtKG gamma = traceGtKG / prev_traceGtKG
prev_traceGtKG = traceGtKG
D = gamma / d_scale * D + KG D = gamma / d_scale * D + KG
d_scale = num_modes / norm(D) d_scale = num_modes / norm(D)
@ -673,7 +674,6 @@ def eigsolve(
Z *= numpy.cos(theta) Z *= numpy.cos(theta)
Z += D * numpy.sin(theta) Z += D * numpy.sin(theta)
prev_traceGtKG = traceGtKG
#prev_theta = theta #prev_theta = theta
prev_E = E prev_E = E