COMBINATORIAL_BLAS  1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Friends
CommGrid Class Reference

#include <CommGrid.h>

List of all members.

Public Member Functions

 CommGrid (MPI_Comm world, int nrowproc, int ncolproc)
 ~CommGrid ()
 CommGrid (const CommGrid &rhs)
CommGridoperator= (const CommGrid &rhs)
void CreateDiagWorld ()
bool operator== (const CommGrid &rhs) const
bool operator!= (const CommGrid &rhs) const
bool OnSameProcCol (int rhsrank)
bool OnSameProcRow (int rhsrank)
int GetRank (int rowrank, int colrank)
int GetRank (int diagrank)
int GetRank ()
int GetRankInProcRow ()
int GetRankInProcCol ()
int GetDiagRank ()
int GetRankInProcRow (int wholerank)
 Return rank in the row world.
int GetRankInProcCol (int wholerank)
 Return rank in the column world.
int GetDiagOfProcRow ()
int GetDiagOfProcCol ()
int GetComplementRank ()
MPI_Comm & GetWorld ()
MPI_Comm & GetRowWorld ()
MPI_Comm & GetColWorld ()
MPI_Comm & GetDiagWorld ()
MPI_Comm GetWorld () const
MPI_Comm GetRowWorld () const
MPI_Comm GetColWorld () const
MPI_Comm GetDiagWorld () const
int GetGridRows ()
int GetGridCols ()
int GetSize ()
int GetDiagSize ()
void OpenDebugFile (string prefix, ofstream &output) const

Friends

class SpParMat
shared_ptr< CommGridProductGrid (CommGrid *gridA, CommGrid *gridB, int &innerdim, int &Aoffset, int &Boffset)

Detailed Description

Definition at line 45 of file CommGrid.h.


Constructor & Destructor Documentation

CommGrid::CommGrid ( MPI_Comm  world,
int  nrowproc,
int  ncolproc 
)

Create row and column communicators (must be collectively called) C syntax: int MPI_Comm_split(MPI_Comm comm, int color, int key, MPI_Comm *newcomm) C++ syntax: MPI::Intercomm MPI::Intercomm::Split(int color, int key) consts Semantics: Processes with the same color are in the same new communicator

Definition at line 31 of file CommGrid.cpp.

CommGrid::~CommGrid ( )
inline

Definition at line 50 of file CommGrid.h.

CommGrid::CommGrid ( const CommGrid rhs)
inline

Definition at line 57 of file CommGrid.h.


Member Function Documentation

void CommGrid::CreateDiagWorld ( )

Definition at line 71 of file CommGrid.cpp.

MPI_Comm& CommGrid::GetColWorld ( )
inline

Definition at line 130 of file CommGrid.h.

MPI_Comm CommGrid::GetColWorld ( ) const
inline

Definition at line 134 of file CommGrid.h.

int CommGrid::GetComplementRank ( )
inline

Definition at line 123 of file CommGrid.h.

int CommGrid::GetDiagOfProcCol ( )

Get the rank of the diagonal processor in that particular col In the ith processor col, the diagonal processor is the ith processor within that col

Definition at line 128 of file CommGrid.cpp.

int CommGrid::GetDiagOfProcRow ( )

Get the rank of the diagonal processor in that particular row In the ith processor row, the diagonal processor is the ith processor within that row

Definition at line 121 of file CommGrid.cpp.

int CommGrid::GetDiagRank ( )
inline

Definition at line 110 of file CommGrid.h.

int CommGrid::GetDiagSize ( )
inline

Definition at line 140 of file CommGrid.h.

MPI_Comm& CommGrid::GetDiagWorld ( )
inline

Definition at line 131 of file CommGrid.h.

MPI_Comm CommGrid::GetDiagWorld ( ) const
inline

Definition at line 135 of file CommGrid.h.

int CommGrid::GetGridCols ( )
inline

Definition at line 138 of file CommGrid.h.

int CommGrid::GetGridRows ( )
inline

Definition at line 137 of file CommGrid.h.

int CommGrid::GetRank ( int  rowrank,
int  colrank 
)
inline

Definition at line 105 of file CommGrid.h.

int CommGrid::GetRank ( int  diagrank)
inline

Definition at line 106 of file CommGrid.h.

int CommGrid::GetRank ( )
inline

Definition at line 107 of file CommGrid.h.

int CommGrid::GetRankInProcCol ( )
inline

Definition at line 109 of file CommGrid.h.

int CommGrid::GetRankInProcCol ( int  wholerank)

Return rank in the column world.

Definition at line 108 of file CommGrid.cpp.

int CommGrid::GetRankInProcRow ( )
inline

Definition at line 108 of file CommGrid.h.

int CommGrid::GetRankInProcRow ( int  wholerank)

Return rank in the row world.

Definition at line 114 of file CommGrid.cpp.

MPI_Comm& CommGrid::GetRowWorld ( )
inline

Definition at line 129 of file CommGrid.h.

MPI_Comm CommGrid::GetRowWorld ( ) const
inline

Definition at line 133 of file CommGrid.h.

int CommGrid::GetSize ( )
inline

Definition at line 139 of file CommGrid.h.

MPI_Comm& CommGrid::GetWorld ( )
inline

Definition at line 128 of file CommGrid.h.

MPI_Comm CommGrid::GetWorld ( ) const
inline

Definition at line 132 of file CommGrid.h.

bool CommGrid::OnSameProcCol ( int  rhsrank)

Definition at line 97 of file CommGrid.cpp.

bool CommGrid::OnSameProcRow ( int  rhsrank)

Definition at line 102 of file CommGrid.cpp.

void CommGrid::OpenDebugFile ( string  prefix,
ofstream &  output 
) const

Definition at line 147 of file CommGrid.cpp.

bool CommGrid::operator!= ( const CommGrid rhs) const
inline

Definition at line 98 of file CommGrid.h.

CommGrid& CommGrid::operator= ( const CommGrid rhs)
inline

Definition at line 72 of file CommGrid.h.

bool CommGrid::operator== ( const CommGrid rhs) const

Definition at line 133 of file CommGrid.cpp.


Friends And Related Function Documentation

shared_ptr<CommGrid> ProductGrid ( CommGrid gridA,
CommGrid gridB,
int &  innerdim,
int &  Aoffset,
int &  Boffset 
)
friend

Definition at line 158 of file CommGrid.cpp.

friend class SpParMat
friend

Definition at line 161 of file CommGrid.h.


The documentation for this class was generated from the following files: