def iterate_grid(self, n):
        '''
            iterate over the grid self.c passing back n * n instances that cover the whole grid
            
            n - size of the scan matrix
        
        '''
        for y in np.arange(0, self.grid.shape[1]-n, 1):            
            for x in np.arange(0, self.grid.shape[0]-n, 1):
                yield self.is_cross(self.grid[x:x+n, y:y+n]), self.grid[x:x+n, y:y+n], x, y

            iterate over the grid self.c passing back n * n instances that cover the whole grid
            
            n - size of the scan matrix
        
        
recipes/Python/578657_Locate_see_biggest_cross_random_matrix_/recipe-578657.py