diff --git a/pyopencl/array.py b/pyopencl/array.py index 416a41f3e6dbe3c2b645ae1873ea2bb6a658390d..3f65288a16909d0915308322b39fa8af848d7851 100644 --- a/pyopencl/array.py +++ b/pyopencl/array.py @@ -1797,6 +1797,8 @@ class Array(object): # }}} +# {{{ creation helpers + def as_strided(ary, shape=None, strides=None): """Make an :class:`Array` from the given array with the given shape and strides. @@ -1812,10 +1814,6 @@ def as_strided(ary, shape=None, strides=None): return Array(ary.queue, shape, ary.dtype, allocator=ary.allocator, data=ary.data, strides=strides) -# }}} - - -# {{{ creation helpers class _same_as_transfer(object): # noqa pass