Exemplo n.º 1
0
 def col_indices(self):
     """The column indices of the global array local to the process.
     """
     return blockcyclic.indices_rc(self.global_shape[1],
                                   self.block_shape[1],
                                   self.context.grid_position[1],
                                   self.context.grid_shape[1])
Exemplo n.º 2
0
 def row_indices(self):
     """The row indices of the global array local to the process.
     """
     return blockcyclic.indices_rc(self.global_shape[0],
                                   self.block_shape[0],
                                   self.context.grid_position[0],
                                   self.context.grid_shape[0])