Пример #1
0
 def get_data(self):
     return [
        [libmx.matrix_get(self.m, y, x) for x in range(self.w)]
        for y in range(self.h)
     ]
Пример #2
0
 def get(self, y, x):
     self._check_index(y, x)
     return libmx.matrix_get(self.m, y, x)