def get_data(self): return [ [libmx.matrix_get(self.m, y, x) for x in range(self.w)] for y in range(self.h) ]
def get(self, y, x): self._check_index(y, x) return libmx.matrix_get(self.m, y, x)