From 6a0f563310d7a6a82e05a9a19d14a492ddc83a14 Mon Sep 17 00:00:00 2001 From: Matt Wala <wala1@illinois.edu> Date: Fri, 23 Jun 2017 00:51:05 -0500 Subject: [PATCH] Fix mismatched fold near as_strided(). --- pyopencl/array.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pyopencl/array.py b/pyopencl/array.py index 416a41f3..3f65288a 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 -- GitLab