invproblem changes

This commit is contained in:
rowanc1
2014-05-19 01:23:07 -07:00
parent f9328d6a0e
commit 4e29141fe7
4 changed files with 23 additions and 12 deletions
+1 -1
View File
@@ -687,7 +687,7 @@ class BFGS(Minimize, Remember):
def bfgsrec(self,k,n,nn,S,Y,d):
"""BFGS recursion"""
if k < 0:
d = self.bfgsH0 * (d)
d = self.bfgsH0 * d
else:
khat = 0 if nn is 0 else np.mod(n-nn+k,nn)
gamma = np.vdot(S[:,khat],d)/np.vdot(Y[:,khat],S[:,khat])