Re: [Numpy-discussion] numpy.ascontiguousarray on byteswapped data !?

2006-08-12 Thread Travis Oliphant
Sebastian Haase wrote: > Travis Oliphant wrote: >> Sebastian Haase wrote: >>> Hi, >>> Does numpy.ascontiguousarray(arr) "fix" the byteorder when arr is >>> non-native byteorder ? >>> >>> If not, what functions does ? >>> >> >> It can if you pass in a data-type with the right byteorder (or use a

Re: [Numpy-discussion] numpy.ascontiguousarray on byteswapped data !?

2006-08-11 Thread Francesc Altet
A Divendres 11 Agost 2006 22:02, Travis Oliphant va escriure: > Sebastian Haase wrote: > > I just found this in myCVS/numpy/numpy/core/tests/test_numerictypes.py > > > > > > def normalize_descr(descr): > > "Normalize a description adding the platform byteorder." > > > > return out > > > >

Re: [Numpy-discussion] numpy.ascontiguousarray on byteswapped data !?

2006-08-11 Thread Travis Oliphant
Sebastian Haase wrote: > I just found this in myCVS/numpy/numpy/core/tests/test_numerictypes.py > > > def normalize_descr(descr): > "Normalize a description adding the platform byteorder." > > return out > > > Is that what I was talking about !? It's quite a big animal. > Would th

Re: [Numpy-discussion] numpy.ascontiguousarray on byteswapped data !?

2006-08-11 Thread Sebastian Haase
On Thursday 10 August 2006 21:32, Sebastian Haase wrote: > Travis Oliphant wrote: > > Sebastian Haase wrote: > >> Hi, > >> Does numpy.ascontiguousarray(arr) "fix" the byteorder when arr is > >> non-native byteorder ? > >> > >> If not, what functions does ? > > > > It can if you pass in a data-type

Re: [Numpy-discussion] numpy.ascontiguousarray on byteswapped data !?

2006-08-10 Thread Sebastian Haase
Travis Oliphant wrote: > Sebastian Haase wrote: >> Hi, >> Does numpy.ascontiguousarray(arr) "fix" the byteorder when arr is >> non-native byteorder ? >> >> If not, what functions does ? >> > > It can if you pass in a data-type with the right byteorder (or use a > native built-in data-type). >

Re: [Numpy-discussion] numpy.ascontiguousarray on byteswapped data !?

2006-08-10 Thread Travis Oliphant
Sebastian Haase wrote: > Hi, > Does numpy.ascontiguousarray(arr) "fix" the byteorder when arr is non-native > byteorder ? > > If not, what functions does ? > It can if you pass in a data-type with the right byteorder (or use a native built-in data-type). In NumPy, it's the data-type that car

[Numpy-discussion] numpy.ascontiguousarray on byteswapped data !?

2006-08-10 Thread Sebastian Haase
Hi, Does numpy.ascontiguousarray(arr) "fix" the byteorder when arr is non-native byteorder ? If not, what functions does ? - Sebastian Haase - Using Tomcat but need to do more? Need to support web services, security? Get s