Package mpi4py :: Module MPI :: Class Cartcomm

[hide private]
[frames] | no frames]

# Class Cartcomm

Cartesian topology intracommunicator

Instance Methods | [hide private]

Dup(self) Duplicate an existing communicator |

Get_cart_rank(self, coords) Translate logical coordinates to ranks |

Get_coords(self, int rank) Translate ranks to logical coordinates |

Get_dim(self) Return number of dimensions |

Get_topo(self) Return information on the cartesian topology |

Map(self, dims, periods=None) Return an optimal placement for the calling process on the physical machine |

Shift(self, int direction, int disp) Return a tuple (source,dest) of process ranks for data shifting with Comm.Sendrecv() |

Sub(self, remain_dims) Return cartesian communicators that form lower-dimensional subgrids |

a new object with type S, a subtype of T

__new__(S, ...) |

Inherited from `Intracomm`: `Accept`, `Connect`, `Create`, `Create_cart`, `Create_dist_graph`, `Create_dist_graph_adjacent`, `Create_graph`, `Create_intercomm`, `Exscan`, `Scan`, `Spawn`, `Spawn_multiple`, `Split`, `exscan`, `scan`

Inherited from `Comm`: `Abort`, `Allgather`, `Allgatherv`, `Allreduce`, `Alltoall`, `Alltoallv`, `Alltoallw`, `Barrier`, `Bcast`, `Bsend`, `Bsend_init`, `Call_errhandler`, `Clone`, `Compare`, `Create_keyval`, `Delete_attr`, `Disconnect`, `Free`, `Free_keyval`, `Gather`, `Gatherv`, `Get_attr`, `Get_errhandler`, `Get_group`, `Get_name`, `Get_parent`, `Get_rank`, `Get_size`, `Get_topology`, `Ibsend`, `Iprobe`, `Irecv`, `Irsend`, `Is_inter`, `Is_intra`, `Isend`, `Issend`, `Join`, `Probe`, `Recv`, `Recv_init`, `Reduce`, `Reduce_scatter`, `Reduce_scatter_block`, `Rsend`, `Rsend_init`, `Scatter`, `Scatterv`, `Send`, `Send_init`, `Sendrecv`, `Sendrecv_replace`, `Set_attr`, `Set_errhandler`, `Set_name`, `Ssend`, `Ssend_init`, `__eq__`, `__ge__`, `__gt__`, `__le__`, `__lt__`, `__ne__`, `__nonzero__`, `allgather`, `allreduce`, `alltoall`, `barrier`, `bcast`, `bsend`, `f2py`, `gather`, `ibsend`, `irecv`, `isend`, `issend`, `py2f`, `recv`, `reduce`, `scatter`, `send`, `sendrecv`, `ssend`

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

Properties | [hide private]

| coords coordinates
| dim number of dimensions
| dims dimensions
| ndim number of dimensions
| periods periodicity
| topo topology information
Inherited from `Comm`: `group`, `is_inter`, `is_intra`, `name`, `rank`, `size`, `topology` Inherited from `object`: `__class__`

Method Details | [hide private]

### Dup(self)

Duplicate an existing communicator

Overrides: Intracomm.Dup

### __new__(S, ...)

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