예제 #1
0
파일: core.py 프로젝트: vincentmr/scalapy
 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])
예제 #2
0
파일: core.py 프로젝트: vincentmr/scalapy
 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])