Skip to main content
. Author manuscript; available in PMC: 2016 Jul 21.
Published in final edited form as: Mol Simul. 2016 Jul 5;42(13):1079–1089. doi: 10.1080/08927022.2015.1110583

Figure 1.

Figure 1

Schematic illustrations of the method of direct inversion of the iterative subspace (DIIS). (a) As an iterative method, DIIS solves the equation, R(f) = 0, by a feedback loop. When the equation is applied to a trial solution, represented by vector fi, we get a residual vector RiR(fi), whose magnitude indicates the error. Ideally, if fi were the true solution, Ri would be zero. In the feedback step, we correct fi using Ri. The task of DIIS is to construct from a few previous vectors accumulated during the iteration an optimal trial vector with hopefully the smallest error ‖‖ to help the next round of iteration. (b) and (c) Given a basis of M (two here) trial vectors, DIIS seeks the combination R^=i=1MciRi that minimises the magnitude ‖‖ under the constraint i=1Mci=1 [panel (c)]. The corresponding combination of the trial vectors, f^=i=1Mcifi, is expected to be close to true solution, f*. Then, we construct the new trial vector as f(n) = + and use it to update the basis for the next round of iteration. (d) If the vectors are one-dimensional (i.e., scalars), it is possible to find a vanishing , and DIIS is equivalent to the secant method.