コード例 #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])