def __init__(self):
     C4Array.__init__(
         self,
         data=np.arange(4)[:, None],
         p='int'
     )
     FiniteGroup.__init__(self, C4Array)
Beispiel #2
0
 def __init__(self):
     D4Array.__init__(
         self,
         data=np.array([[0, 0], [0, 1], [0, 2], [0, 3], [1, 0], [1, 1], [1, 2], [1, 3]]),
         p='int'
     )
     FiniteGroup.__init__(self, D4Array)
Beispiel #3
0
 def __init__(self):
     D4Array.__init__(
         self,
         data=np.array([[0, 0], [0, 1], [0, 2], [0, 3], [1, 0], [1, 1], [1, 2], [1, 3]]),
         p='int'
     )
     FiniteGroup.__init__(self, D4Array)
Beispiel #4
0
 def __init__(self):
     V2Array.__init__(
         self,
         data=np.arange(2)[:, None],
         p='int'
     )
     FiniteGroup.__init__(self, V2Array)
Beispiel #5
0
 def __init__(self):
     D4hArray.__init__(self,
                       data=np.array([[i, j, m] for i in xrange(2)
                                      for j in xrange(4)
                                      for m in xrange(2)]),
                       p='int')
     FiniteGroup.__init__(self, D4hArray)
Beispiel #6
0
 def __init__(self):
     D8Array.__init__(
         self,
         data=np.array([[0, 0], [0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7],
                        [1, 0], [1, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7]]),
         p='int'
     )
     FiniteGroup.__init__(self, D8Array)
Beispiel #7
0
 def __init__(self):
     D8Array.__init__(
         self,
         data=np.array([
             [0, 0], [0, 1], [0, 2], [0, 3], [0, 4], [0, 5], [0, 6], [0, 7],
             [1, 0], [1, 1], [1, 2], [1, 3], [1, 4], [1, 5], [1, 6], [1, 7]]).astype(np.float),
         p='float'
     )
     FiniteGroup.__init__(self, D8Array)
Beispiel #8
0
 def __init__(self):
     # self.garray_type = M3MArray
     # super(D4Group, self).__init__(
     M3MArray.__init__(
         self,
         data=np.c_[np.arange(48) >= 24, np.arange(48) % 24],
         p='int'
     )
     FiniteGroup.__init__(self, M3MArray)
Beispiel #9
0
 def __init__(self):
     OhArray.__init__(self,
                      data=np.array([[i, j] for i in range(24)
                                     for j in range(2)]),
                      p='int')
     FiniteGroup.__init__(self, OhArray)
Beispiel #10
0
 def __init__(self):
     H2V2Array.__init__(self,
                        data=np.array([[0, 0], [0, 1], [1, 0], [1, 1]]),
                        p='int')
     FiniteGroup.__init__(self, H2V2Array)
Beispiel #11
0
 def __init__(self):
     C4hArray.__init__(self,
                       data=np.array([[i, j] for i in xrange(2)
                                      for j in xrange(4)]),
                       p='int')
     FiniteGroup.__init__(self, C4hArray)
Beispiel #12
0
 def __init__(self):
     OArray.__init__(self, data=np.arange(24).reshape(24, 1), p='int')
     FiniteGroup.__init__(self, OArray)
Beispiel #13
0
 def __init__(self):
     OArray.__init__(
         self,
         data=np.arange(24)[:, None],  # 24 elements
         p='int')
     FiniteGroup.__init__(self, OArray)