[NumPy-Tickets] [NumPy] #2256: Py 2.7.2 numpy dot product error

NumPy Trac numpy-tickets@scipy....
Thu Nov 29 15:59:23 CST 2012


#2256: Py 2.7.2 numpy dot product error
------------------------+---------------------------------------------------
 Reporter:  paj         |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  Unscheduled
Component:  numpy.core  |     Version:  1.6.2      
 Keywords:              |  
------------------------+---------------------------------------------------
 In the example below, Python v2.6.2 works OK. With 2.7.2 it spews this
 error:

 M:\MISC\Python\Projects\Cone\cone.py:645: RuntimeWarning: Item size
 computed from the PEP 3118 buffer format
 string does not match the actual item size.

 FPA = asin( numpy.dot(UVU, VECI) )*RAD  -- It is complaining about this
 statement. What is the PEP 3118 buffer?

 where UVU and VECI are defined as:  (c_double*3)().

 I circumvented this problem by computing the vector dot product the old
 fashion way, by summing the product of the vector components. How do I get
 the numpy dot function to work with c_doubles?

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2256>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list