Package mpi4py :: Module MPI :: Class Group

[hide private]
[frames] | no frames]

# Class Group

Group

Instance Methods | [hide private]

Compare(type cls, Group group1, Group group2) Compare two groups |

Difference(type cls, Group group1, Group group2) Produce a group from the difference of two existing groups |

Dup(self) Duplicate a group |

Excl(self, ranks) Produce a group by reordering an existing group and taking only unlisted members |

Free(self) Free a group |

Get_rank(self) Return the rank of this process in a group |

Get_size(self) Return the size of a group |

Incl(self, ranks) Produce a group by reordering an existing group and taking only listed members |

Intersect(type cls, Group group1, Group group2) Produce a group as the intersection of two existing groups |

Range_excl(self, ranks) Create a new group by excluding ranges of processes from an existing group |

Range_incl(self, ranks) Create a new group from ranges of of ranks in an existing group |

Translate_ranks(type cls, Group group1, ranks1, Group group2=None) Translate the ranks of processes in one group to those in another group |

Union(type cls, Group group1, Group group2) Produce a group by combining two existing groups |

__eq__(y) x==y |

__ge__(y) x>=y |

__gt__(y) x>y |

__le__(y) x<=y |

__lt__(y) x<y |

__ne__(y) x!=y |

a new object with type S, a subtype of T

__new__(S, ...) |

__nonzero__() x != 0 |

f2py(type cls, arg) |

py2f(self) |

Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__init__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties | [hide private]

| rank rank of this process in group
| size number of processes in group
Inherited from `object`: `__class__`

Method Details | [hide private]

### __new__(S, ...)

Returns: a new object with type S, a subtype of T
Overrides: object.__new__