def is_little_endian(array):
if numpy.little_endian:<EOL><INDENT>machine_little = True<EOL><DEDENT>else:<EOL><INDENT>machine_little = False<EOL><DEDENT>byteorder = array.dtype.base.byteorder<EOL>return (byteorder == '<STR_LIT:<>') or (machine_little and byteorder == '<STR_LIT:=>')<EOL>
Return True if array is little endian, False otherwise.

Parameters
----------
array: numpy array
    A numerical python array.

Returns
-------
Truth value:
    True for little-endian

Notes
-----
Strings are neither big or little endian.  The input must be a simple numpy
array, not an array with fields.