Ignore:
Timestamp:
08/26/10 14:25:50 (6 years ago)
Author:
mmckerns
Message:

cg & bfgs now work regardless if fprime provides list or ndarray

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alta/mystic-0.2a1/scipy_bfgs.py

    r420 r421  
    194194 
    195195        x0 = constraints(x0) # impose constraints 
    196         gfk = myfprime(x0) 
     196        gfk = asarray(myfprime(x0)) 
    197197        k = 0 
    198198        I = numpy.eye(self.nDim,dtype=int) 
     
    242242                gfkp1 = myfprime(xkp1) 
    243243     
     244            gfkp1 = asarray(gfkp1) 
    244245            yk = gfkp1 - gfk 
    245246            gfk = gfkp1 
Note: See TracChangeset for help on using the changeset viewer.