Package mpi4py :: Module MPI :: Class Cartcomm
[hide private]
[frames] | no frames]

Class Cartcomm


Cartesian topology intracommunicator
Instance Methods [hide private]
int
Get_cart_rank(self, coords: Sequenceint=...)
Translate logical coordinates to ranks
List[int]
Get_coords(self, rank: int)
Translate ranks to logical coordinates
int
Get_dim(self)
Return number of dimensions
Tuple[List[int], List[int], List[int]]
Get_topo(self)
Return information on the cartesian topology
Tuple[int, int]
Shift(self, direction: int, disp: int)
Return a tuple (source, dest) of process ranks for data shifting with Comm.Sendrecv()
Cartcomm
Sub(self, remain_dims: Sequencebool=...)
Return cartesian communicators that form lower-dimensional subgrids
a new object with type S, a subtype of T
__new__(S, ...)

Inherited from Topocomm: Ineighbor_allgather, Ineighbor_allgatherv, Ineighbor_alltoall, Ineighbor_alltoallv, Ineighbor_alltoallw, Neighbor_allgather, Neighbor_allgatherv, Neighbor_alltoall, Neighbor_alltoallv, Neighbor_alltoallw, neighbor_allgather, neighbor_alltoall

Inherited from Intracomm: Accept, Cart_map, Connect, Create_cart, Create_dist_graph, Create_dist_graph_adjacent, Create_graph, Create_intercomm, Exscan, Graph_map, Iexscan, Iscan, Scan, Spawn, Spawn_multiple, exscan, scan

Inherited from Comm: Abort, Allgather, Allgatherv, Allreduce, Alltoall, Alltoallv, Alltoallw, Barrier, Bcast, Bsend, Bsend_init, Call_errhandler, Clone, Compare, Create, Create_group, Create_keyval, Delete_attr, Disconnect, Dup, Dup_with_info, Free, Free_keyval, Gather, Gatherv, Get_attr, Get_errhandler, Get_group, Get_info, Get_name, Get_parent, Get_rank, Get_size, Get_topology, Iallgather, Iallgatherv, Iallreduce, Ialltoall, Ialltoallv, Ialltoallw, Ibarrier, Ibcast, Ibsend, Idup, Igather, Igatherv, Improbe, Iprobe, Irecv, Ireduce, Ireduce_scatter, Ireduce_scatter_block, Irsend, Is_inter, Is_intra, Iscatter, Iscatterv, Isend, Issend, Join, Mprobe, 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_info, Set_name, Split, Split_type, Ssend, Ssend_init, __eq__, __ge__, __gt__, __le__, __lt__, __ne__, __nonzero__, allgather, allreduce, alltoall, barrier, bcast, bsend, f2py, gather, ibsend, improbe, iprobe, irecv, isend, issend, mprobe, probe, 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
Cartcomm.coords: List[int] coordinates
  dim
Cartcomm.dim: int number of dimensions
  dims
Cartcomm.dims: List[int] dimensions
  ndim
Cartcomm.ndim: int number of dimensions
  periods
Cartcomm.periods: List[int] periodicity
  topo
Cartcomm.topo: Tuple[List[int], List[int], List[int]] topology information

Inherited from Topocomm: degrees, indegree, inedges, inoutedges, outdegree, outedges

Inherited from Comm: group, info, is_inter, is_intra, is_topo, name, rank, size, topology

Inherited from object: __class__

Method Details [hide private]

__new__(S, ...)

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