程序包 mpi

类 Group

java.lang.Object
mpi.Group
所有已实现的接口:
Freeable

public final class Group extends Object implements Freeable
This class represents MPI_Group.
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    protected long
     
  • 构造器概要

    构造器
    限定符
    构造器
    说明
    protected
    Group(long handle)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static int
    compare(Group group1, Group group2)
    Compare two groups.
    static Group
    difference(Group group1, Group group2)
    Set difference of two groups.
    excl(int[] ranks)
    Create a subset group excluding specified processes.
    void
    Java binding of the MPI operation MPI_GROUP_FREE.
    protected static long
     
    int
    Rank of this process in the group.
    int
    Java binding of the MPI operation MPI_GROUP_SIZE.
    incl(int[] ranks)
    Create a subset group including specified processes.
    static Group
    intersection(Group group1, Group group2)
    Set intersection of two groups.
    boolean
    Test if group object is null.
    rangeExcl(int[][] ranges)
    Create a subset group excluding processes specified by strided intervals of ranks.
    rangeIncl(int[][] ranges)
    Create a subset group including processes specified by strided intervals of ranks.
    static int[]
    translateRanks(Group group1, int[] ranks1, Group group2)
    Translate ranks within one group to ranks within another.
    static Group
    union(Group group1, Group group2)
    Set union of two groups.

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

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • handle

      protected long handle
  • 构造器详细资料

    • Group

      protected Group(long handle)
  • 方法详细资料

    • getEmpty

      protected static long getEmpty()
    • getSize

      public int getSize() throws MPIException
      Java binding of the MPI operation MPI_GROUP_SIZE.
      返回:
      number of processes in the group
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • getRank

      public int getRank() throws MPIException
      Rank of this process in the group.

      Java binding of the MPI operation MPI_GROUP_RANK.

      返回:
      rank of this process in the group, or MPI.UNDEFINED if this process is not a member of the group.
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • free

      public void free() throws MPIException
      Java binding of the MPI operation MPI_GROUP_FREE.
      指定者:
      free 在接口中 Freeable
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • isNull

      public boolean isNull()
      Test if group object is null.
      返回:
      true if the group object is null.
    • translateRanks

      public static int[] translateRanks(Group group1, int[] ranks1, Group group2) throws MPIException
      Translate ranks within one group to ranks within another.

      Java binding of the MPI operation MPI_GROUP_TRANSLATE_RANKS.

      Result elements are MPI.UNDEFINED where no correspondence exists.

      参数:
      group1 - a group
      ranks1 - array of valid ranks in group1
      group2 - another group
      返回:
      array of corresponding ranks in group2
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • compare

      public static int compare(Group group1, Group group2) throws MPIException
      Compare two groups.

      Java binding of the MPI operation MPI_GROUP_COMPARE.

      参数:
      group1 - first group
      group2 - second group
      返回:
      MPI.IDENT if the group members and group order are exactly the same in both groups, MPI.SIMILAR if the group members are the same but the order is different, MPI.UNEQUAL otherwise.
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • union

      public static Group union(Group group1, Group group2) throws MPIException
      Set union of two groups.

      Java binding of the MPI operation MPI_GROUP_UNION.

      参数:
      group1 - first group
      group2 - second group
      返回:
      union group
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • intersection

      public static Group intersection(Group group1, Group group2) throws MPIException
      Set intersection of two groups. Java binding of the MPI operation MPI_GROUP_INTERSECTION.
      参数:
      group1 - first group
      group2 - second group
      返回:
      intersection group
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • difference

      public static Group difference(Group group1, Group group2) throws MPIException
      Set difference of two groups. Java binding of the MPI operation MPI_GROUP_DIFFERENCE.
      参数:
      group1 - first group
      group2 - second group
      返回:
      difference group
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • incl

      public Group incl(int[] ranks) throws MPIException
      Create a subset group including specified processes.

      Java binding of the MPI operation MPI_GROUP_INCL.

      参数:
      ranks - ranks from this group to appear in new group
      返回:
      new group
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • excl

      public Group excl(int[] ranks) throws MPIException
      Create a subset group excluding specified processes.

      Java binding of the MPI operation MPI_GROUP_EXCL.

      参数:
      ranks - ranks from this group not to appear in new group
      返回:
      new group
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • rangeIncl

      public Group rangeIncl(int[][] ranges) throws MPIException
      Create a subset group including processes specified by strided intervals of ranks.

      Java binding of the MPI operation MPI_GROUP_RANGE_INCL.

      The triplets are of the form (first rank, last rank, stride) indicating ranks in this group to be included in the new group. The size of the first dimension of ranges is the number of triplets. The size of the second dimension is 3.

      参数:
      ranges - array of integer triplets
      返回:
      new group
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.
    • rangeExcl

      public Group rangeExcl(int[][] ranges) throws MPIException
      Create a subset group excluding processes specified by strided intervals of ranks.

      Java binding of the MPI operation MPI_GROUP_RANGE_EXCL.

      Triplet array is defined as for rangeIncl, the ranges indicating ranks in this group to be excluded from the new group.

      参数:
      ranges - array of integer triplets
      返回:
      new group
      抛出:
      MPIException - Signals that an MPI exception of some sort has occurred.