[Numpy-discussion] Byte aligned arrays

Henry Gomersall heng@cantab....
Thu Dec 20 10:47:50 CST 2012


On Thu, 2012-12-20 at 17:26 +0100, Sturla Molden wrote:
>       return tmp[offset:offset+N]\
>                 .view(dtype=d)\
>                 .reshape(shape, order=order)

Also, just for the email record, that should be 
	
	return tmp[offset:offset+N*d.itemsize]\
                 .view(dtype=d)\
                 .reshape(shape, order=order)

Cheers,

Henry
 



More information about the NumPy-Discussion mailing list