[Scipy-tickets] [SciPy] #344: ValueError: objects are not aligned in optimize.fmin_cg

SciPy scipy-tickets@scipy....
Sun Aug 19 08:36:29 CDT 2007


#344: ValueError: objects are not aligned in optimize.fmin_cg
----------------------------+-----------------------------------------------
 Reporter:  nils            |        Owner:  somebody
     Type:  defect          |       Status:  closed  
 Priority:  normal          |    Milestone:  0.6     
Component:  scipy.optimize  |      Version:  devel   
 Severity:  major           |   Resolution:  fixed   
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by dmitrey):

 yes, changeset [3172], it had been fixed and now all fmin_cg tests known
 to me, including unittests, pass ok

 the problem was in _cubicmin func, it used
 Num.dot([[dc**2, -db**2],[-dc**3, db**3]],[fb-fa-C*db,fc-fa-C*dc])

 and it gave incorrect multiply with current numpy version (matrix of shape
 2x2x1 times matrix of shape 2x2 or like that)

-- 
Ticket URL: <http://projects.scipy.org/scipy/scipy/ticket/344#comment:4>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list