[Numpy-discussion] Byte aligned arrays

Sturla Molden sturla@molden...
Thu Dec 20 10:53:00 CST 2012


On 20.12.2012 17:47, Henry Gomersall wrote:
> 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)

Oops, yes that's right :)

Sturla



More information about the NumPy-Discussion mailing list