Exemplo n.º 1
0
    def init(self):
        for v in gen_views(4,16,4,min_ndim=2):
            a = {}
            self.axis1 = 0
            self.axis2 = 1
            self.offset = 0
            exec(v)
            yield (a,v)

            for offset in xrange(1, a[0].shape[0]):
                self.offset = offset
                exec(v)
                yield (a,v)


            for axis1 in xrange(a[0].ndim):
                for axis2 in xrange(a[0].ndim):
                    if axis1 == axis2:
                        continue
                    for offset in xrange(1, a[0].shape[axis1]):
                        exec(v)
                        self.offset = offset
                        self.axis1 = axis1
                        self.axis2 = axis2
                        yield (a,v)
Exemplo n.º 2
0
    def init(self):
        for v in gen_views(4,16,6,min_ndim=2):
            a = {}
            exec(v)

            for offset in xrange(-a[0].shape[0], a[0].shape[0]+1):
                exec(v)
                self.offset = offset
                yield (a,v)
Exemplo n.º 3
0
    def init(self):
        for v in gen_views(4, 16, 6, min_ndim=2):
            a = {}
            exec(v)

            for offset in xrange(-a[0].shape[0], a[0].shape[0] + 1):
                exec(v)
                self.offset = offset
                yield (a, v)
Exemplo n.º 4
0
 def init(self):
     for v in gen_views(4,8,6,min_ndim=1):
         a = {}
         self.axis = 0
         exec(v)
         yield (a,v)
         for axis in range(1,a[0].ndim):
             exec(v)
             self.axis = axis
             yield (a,v)
Exemplo n.º 5
0
 def init(self):
     for v in gen_views(1, 100, 10):
         a = {}
         v += "a[0] = a[0][:, np.newaxis];"
         exec(v)
         for l in range(len(a[0]) - 1):
             self.l = l
             v2 = v + "a[1] = self.array([100], np.%s);" % (a[0].dtype)
             exec(v2)
             yield (a, v2)
Exemplo n.º 6
0
 def init(self):
     for v in gen_views(1,100,10):
         a = {}
         v += "a[0] = a[0][:, np.newaxis];"
         exec(v)
         for l in range(len(a[0])-1):
             self.l = l
             v2 = v + "a[1] = self.array([100], np.%s);"%(a[0].dtype)
             exec(v2)
             yield (a,v2)
Exemplo n.º 7
0
 def init(self):
     for v in gen_views(4, 10, 6, dtype="np.bool"):
         a = {}
         self.axis = 0
         exec(v)
         yield (a, v)
         for axis in range(1, a[0].ndim):
             exec(v)
             self.axis = axis
             yield (a, v)
         for axis in range(1, a[0].ndim):
             exec(v)
             self.axis = -axis
             yield (a, v)
Exemplo n.º 8
0
 def init(self):
     for v in gen_views(4,10,6,dtype="np.bool"):
         a = {}
         self.axis = 0
         exec(v)
         yield (a,v)
         for axis in range(1,a[0].ndim):
             exec(v)
             self.axis = axis
             yield (a,v)
         for axis in range(1,a[0].ndim):
             exec(v)
             self.axis = -axis
             yield (a,v)
Exemplo n.º 9
0
    def init(self):
        for v in gen_views(4, 16, 6, min_ndim=2, dtype="np.uint32"):
            a = {}
            self.axis1 = 0
            self.axis2 = 1
            exec(v)
            yield (a, v)

            for axis1 in xrange(a[0].ndim):
                for axis2 in xrange(a[0].ndim):
                    if axis1 == axis2:
                        continue
                    exec(v)
                    self.axis1 = axis1
                    self.axis2 = axis2
                    yield (a, v)
Exemplo n.º 10
0
 def init(self):
     print("numpy.bitwise_and.reduce is broken, testing it makes no sense.")
     raise StopIteration()
     for v in gen_views(4,10,6, dtype="np.uint32"):
         a = {}
         self.axis = 0
         exec(v)
         yield (a,v)
         for axis in range(1,a[0].ndim):
             exec(v)
             self.axis = axis
             yield (a,v)
         for axis in range(1,a[0].ndim):
             exec(v)
             self.axis = -axis
             yield (a,v)
Exemplo n.º 11
0
    def init(self):
        for v in gen_views(4,16,6,min_ndim=2):
            a = {}
            self.axis1 = 0
            self.axis2 = 1
            exec(v)
            yield (a,v)

            for axis1 in xrange(a[0].ndim):
                for axis2 in xrange(a[0].ndim):
                    if axis1 == axis2:
                        continue
                    exec(v)
                    self.axis1 = axis1
                    self.axis2 = axis2
                    yield (a,v)
Exemplo n.º 12
0
    def init(self):
        for v in gen_views(4,8,4,min_ndim=2,dtype="np.uint32"):
            a = {}
            exec(v)
            self.axis1 = 0
            self.axis2 = 1
            self.offset = 0

            for offset in xrange(-a[0].shape[0], a[0].shape[0]+1):
                self.offset = offset
                exec(v)
                yield (a,v)

            for offset in xrange(-a[0].shape[0], a[0].shape[0]+1):
                for axis1 in xrange(a[0].ndim):
                    for axis2 in xrange(a[0].ndim):
                        if axis1 == axis2:
                            continue
                        exec(v)
                        self.offset = offset
                        self.axis1 = axis1
                        self.axis2 = axis2
                        yield (a,v)
Exemplo n.º 13
0
    def init(self):
        for v in gen_views(4, 8, 4, min_ndim=2, dtype="np.uint32"):
            a = {}
            exec(v)
            self.axis1 = 0
            self.axis2 = 1
            self.offset = 0

            for offset in xrange(-a[0].shape[0], a[0].shape[0] + 1):
                self.offset = offset
                exec(v)
                yield (a, v)

            for offset in xrange(-a[0].shape[0], a[0].shape[0] + 1):
                for axis1 in xrange(a[0].ndim):
                    for axis2 in xrange(a[0].ndim):
                        if axis1 == axis2:
                            continue
                        exec(v)
                        self.offset = offset
                        self.axis1 = axis1
                        self.axis2 = axis2
                        yield (a, v)
Exemplo n.º 14
0
    def init(self):
        for v in gen_views(4, 16, 4, min_ndim=2):
            a = {}
            self.axis1 = 0
            self.axis2 = 1
            self.offset = 0
            exec(v)
            yield (a, v)

            for offset in xrange(1, a[0].shape[0]):
                self.offset = offset
                exec(v)
                yield (a, v)

            for axis1 in xrange(a[0].ndim):
                for axis2 in xrange(a[0].ndim):
                    if axis1 == axis2:
                        continue
                    for offset in xrange(1, a[0].shape[axis1]):
                        exec(v)
                        self.offset = offset
                        self.axis1 = axis1
                        self.axis2 = axis2
                        yield (a, v)
Exemplo n.º 15
0
 def init(self):
     for v in gen_views(3,64,6):
         a = {}
         exec(v)
         yield (a,v)
Exemplo n.º 16
0
 def init(self):
     for v in gen_views(4,16,6,min_ndim=2):
         a = {}
         exec(v)
         yield (a,v)
Exemplo n.º 17
0
 def init(self):
     for v in gen_views(7,8,4):
         a = {}
         exec(v)
         yield (a,v)
Exemplo n.º 18
0
 def init(self):
     for v in gen_views(4, 10, 6):
         a = {}
         self.axis = 0
         exec(v)
         yield (a, v)
Exemplo n.º 19
0
 def init(self):
     for v in gen_views(4,10,6):
         a = {}
         self.axis = 0
         exec(v)
         yield (a,v)
Exemplo n.º 20
0
 def init(self):
     for v in gen_views(1, 2):
         a = {}
         exec(v)
         yield (a, v)
Exemplo n.º 21
0
 def init(self):
     for v in gen_views(4, 32, 6, min_ndim=2):
         a = {}
         exec(v)
         yield (a, v)
Exemplo n.º 22
0
 def init(self):
     for v in gen_views(4, 32, 6, min_ndim=2, dtype="np.uint32"):
         a = {}
         exec(v)
         yield (a, v)
Exemplo n.º 23
0
 def init(self):
     for v in gen_views(4,32,6,min_ndim=2,dtype="np.uint32"):
         a = {}
         exec(v)
         yield (a,v)
Exemplo n.º 24
0
 def init(self):
     for v in gen_views(3, 64, 6):
         a = {}
         exec(v)
         yield (a, v)