Add GpuArray_IS_C_CONTIGUOUS and GpuArray_IS_F_CONTIGUOUS and fix GpuArr...

...ay_ISFORTRAN.

The last one should be true only if fortran and not c order:

http://docs.scipy.org/doc/numpy/reference/c-api.array.html#PyArray_ISFORTRAN
pygpu_sync don't return anything. Should I modify it to also return 0?


On Wed, Jul 23, 2014 at 10:44 AM, abergeron <notifications@github.com>
wrote:

> In pygpu/gpuarray.pyx:
>
> > @@ -644,6 +644,10 @@ cdef GpuArray pygpu_copy(GpuArray a, ga_order ord):
> >      array_copy(res, a, ord)
> >      return res
> >
> > +cdef int pygpu_move(GpuArray a, GpuArray src) except -1:
> > +    array_move(a, src)
> > +    return a
>
> Don't 'return a', 'return 0' instead
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Theano/libgpuarray/pull/10/files#r15291457>.
>