[Numpy-discussion] Byte aligned arrays

Henry Gomersall heng at cantab.net
Thu Dec 20 11:47:50 EST 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