-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix frequency-dependent iterative CPHF #91
base: master
Are you sure you want to change the base?
Conversation
# Build initial guess, previous vectors, and DIIS objects | ||
norb = self.scf_wfn.nmo() | ||
C = np.asarray(self.C) | ||
rhsmats = [C.T @ np.asarray(dipmat) @ C for dipmat in self.tmp_dipoles] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you use np.dot
here. I do like the @
syntax better, just not sure if people are ready for it yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not quite sure I follow this error, but everything looks good to me in general. Happy to merge once this comes out of draft.
It is lost to the ages what the actual problem with the iterative solver was (something with separate response vectors rather than a single combined U?), but I had left this draft in the hopes of referencing another paper or two, but clearly that didn't happen. The code has been done the entire time. |
A bug where the list holding response vectors (
self.x
) wasn't cleared was hiding the fact thatsolve_dynamic_iterative
was not correct.