[Numpy-tickets] [NumPy] #503: non native endian does not work with frompyfunc

NumPy numpy-tickets@scipy....
Fri Apr 20 03:32:38 CDT 2007


#503: non native endian does not work with frompyfunc
------------------------+---------------------------------------------------
 Reporter:  hugo        |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:          
Component:  numpy.core  |     Version:  devel   
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 {{{
 >>> uradians = numpy.frompyfunc(math.radians, 1, 1)
 >>> big = numpy.array([83.4, 83.5], dtype='>f8')
 >>> uradians(big)
 array([-2.6919063283e-182, 1.26773292198e-318], dtype=object)
 >>> little = numpy.array([83.4, 83.5], dtype='<f8')
 >>> uradians(little)
 array([1.45560459616, 1.45734992542], dtype=object)
 }}}

 This particular example can better be done by multiplying by pi/180, it is
 just a simple prove of concept.

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/503>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list