(self, stream=None)
return result
Return this array in reversed order. The array is treated
        as one-dimensional.
Return this array in reversed order. The array is treated
        as one-dimensional.
Return this array in reversed order . The array is treated as one - dimensional .
def reverse(self, stream=None):
        """Return this array in reversed order. The array is treated
        as one-dimensional.
        """

        if not self.flags.forc:
            raise RuntimeError(
                "only contiguous arrays may " "be used as arguments to this operation"
            )

        result = self._new_like_me()

        func = elementwise.get_reverse_kernel(self.dtype)
        func.prepared_async_call(
            self._grid, self._block, stream, self.gpudata, result.gpudata, self.mem_size
        )

        return result
def reverse ( self , stream = None ) : if not self . flags . forc : raise RuntimeError ( "only contiguous arrays may " "be used as arguments to this operation" ) result = self . _new_like_me ( ) func = elementwise . get_reverse_kernel ( self . dtype ) func . prepared_async_call ( self . _grid , self . _block , stream , self . gpudata , result . gpudata , self . mem_size ) return result