[Numpy-discussion] LapackError:non-native byte order

Pauli Virtanen pav at iki.fi
Mon Nov 8 13:31:31 EST 2010


ma, 2010-11-08 kello 18:56 +0100, LittleBigBrain kirjoitti:
> In my system '<' is the native byte-order, but unless I change the
> byte-order label to '=', it won't work in linalg sub-module, but in
> others works OK. I am not sure whether this is an expected behavior or
> a bug?
> >>> import sys
> >>> sys.byteorder
> 'little'
> >>> a.dtype.byteorder
> '<'
> >>> b.dtype.byteorder
> '<'

The error is here: it's not possible to create such dtypes via any Numpy
methods -- the '<' (or '>') is always normalized to '='. Numpy and
several other modules consequently assume this normalization.

Where do `a` and `b` come from?

-- 
Pauli Virtanen




More information about the NumPy-Discussion mailing list