'Create and returns a numpy array wrapper from a numpy array.'

def _create_array_wrapper(self, array):

    order = ('F' if (array.flags.f_contiguous and (not array.flags.c_contiguous)) else 'C')
    allow_mmap = ((not self.buffered) and (not array.dtype.hasobject))
    wrapper = NumpyArrayWrapper(type(array), array.shape, order, array.dtype, allow_mmap=allow_mmap)
    return wrapper
