程序包 mpi

类 CartParms

java.lang.Object
mpi.CartParms

public final class CartParms extends Object
Cartesian topology information associated with a communicator.
  • 构造器概要

    构造器
    限定符
    构造器
    说明
    protected
    CartParms(int[] dims, boolean[] periods, int[] coords)
    Constructs a cartesian topology information object.
  • 方法概要

    修饰符和类型
    方法
    说明
    int
    getCoord(int i)
    Returns the coordinate of calling process for a cartesian dimension.
    int
    getDim(int i)
    Returns the number of processes for a cartesian dimension.
    int
    Returns the number of dimensions.
    boolean
    getPeriod(int i)
    Returns the periodicity (true/false) for a cartesian dimension.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • CartParms

      protected CartParms(int[] dims, boolean[] periods, int[] coords)
      Constructs a cartesian topology information object.
      参数:
      dims - number of processes for each cartesian dimension.
      periods - periodicity (true/false) for each cartesian dimension.
      coords - coordinates of calling process in cartesian structure.
  • 方法详细资料

    • getDimCount

      public int getDimCount()
      Returns the number of dimensions.
      返回:
      number of dimensions.
    • getDim

      public int getDim(int i)
      Returns the number of processes for a cartesian dimension.
      参数:
      i - cartesian dimension.
      返回:
      number of processes for a cartesian dimension.
    • getPeriod

      public boolean getPeriod(int i)
      Returns the periodicity (true/false) for a cartesian dimension.
      参数:
      i - cartesian dimension.
      返回:
      periodicity for a cartesian dimension.
    • getCoord

      public int getCoord(int i)
      Returns the coordinate of calling process for a cartesian dimension.
      参数:
      i - cartesian dimension.
      返回:
      coordinate of calling process for a cartesian dimension.