示例#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])