diff --git a/pycuda/gpuarray.py b/pycuda/gpuarray.py index 99b63969ad25bd78c762aa70c9ecb917a22360e4..ba989521eaf49aee39b9a1c152fcead4e9f38a45 100644 --- a/pycuda/gpuarray.py +++ b/pycuda/gpuarray.py @@ -667,7 +667,7 @@ class GPUArray(object): """ return self._pow(other,new=False) - + def reverse(self, stream=None): """Return this array in reversed order. The array is treated @@ -1524,13 +1524,13 @@ def transpose(a, axes=None): return a.transpose(axes) -def reshape(a, shape): +def reshape(a, *shape, **kwargs): """Gives a new shape to an array without changing its data. .. versionadded:: 2015.2 """ - return a.reshape(shape) + return a.reshape(*shape, **kwargs) # }}}