FEI Version of the Day
Public Member Functions
fei::Graph_Impl Class Reference

#include <fei_Graph_Impl.hpp>

Inheritance diagram for fei::Graph_Impl:
Inheritance graph

List of all members.

Public Member Functions

 Graph_Impl (MPI_Comm comm, int firstLocalRow, int lastLocalRow)
virtual ~Graph_Impl ()
int addIndices (int row, int len, const int *indices)
int addSymmetricIndices (int numIndices, int *indices, bool diagonal=false)
int gatherFromOverlap ()
table_typegetLocalGraph ()
std::vector< remote_table_type * > & getRemoteGraph ()
int writeLocalGraph (FEI_OSTREAM &os, bool debug=false, bool prefixLinesWithPoundSign=true)
int writeRemoteGraph (FEI_OSTREAM &os)
int getNumLocalRows ()
int getNumLocalNonzeros () const
int getLocalRowLength (int row)

Detailed Description

Basic algebraic matrix-graph representation.

Definition at line 56 of file fei_Graph_Impl.hpp.

Constructor & Destructor Documentation

fei::Graph_Impl::Graph_Impl ( MPI_Comm  comm,
int  firstLocalRow,
int  lastLocalRow 


Definition at line 57 of file fei_Graph_Impl.cpp.

fei::Graph_Impl::~Graph_Impl ( ) [virtual]


Definition at line 80 of file fei_Graph_Impl.cpp.

Member Function Documentation

int fei::Graph_Impl::addIndices ( int  row,
int  len,
const int *  indices 
) [virtual]

Add indices to a specified row of the table

Implements fei::Graph.

Definition at line 89 of file fei_Graph_Impl.cpp.

int fei::Graph_Impl::addSymmetricIndices ( int  numIndices,
int *  indices,
bool  diagonal = false 
) [virtual]

Add a symmetric block of indices. The array of indices will serve as both row-numbers, and as column-numbers in those rows.

Implements fei::Graph.

Definition at line 105 of file fei_Graph_Impl.cpp.

int fei::Graph_Impl::gatherFromOverlap ( ) [virtual]

gather all remotely-owned table portions to owning processors

Implements fei::Graph.

Definition at line 226 of file fei_Graph_Impl.cpp.

table_type* fei::Graph_Impl::getLocalGraph ( ) [inline, virtual]

Retrieve the local portion of the graph. i.e., The rows which correspond to locally-owned IDs.

Implements fei::Graph.

Definition at line 81 of file fei_Graph_Impl.hpp.

std::vector<remote_table_type*>& fei::Graph_Impl::getRemoteGraph ( ) [inline, virtual]

Retrieve the remotely-owned portion of the graph.

Implements fei::Graph.

Definition at line 87 of file fei_Graph_Impl.hpp.

int fei::Graph_Impl::writeLocalGraph ( FEI_OSTREAM &  os,
bool  debug = false,
bool  prefixLinesWithPoundSign = true 
) [virtual]

Write locally-owned portion of the graph to a specified ostream.

Implements fei::Graph.

Definition at line 187 of file fei_Graph_Impl.cpp.

int fei::Graph_Impl::writeRemoteGraph ( FEI_OSTREAM &  os) [virtual]

Write remotely-owned portion of the graph to a specified ostream.

Implements fei::Graph.

Definition at line 216 of file fei_Graph_Impl.cpp.

int fei::Graph_Impl::getNumLocalRows ( )

Get the number of locally-owned rows.

Definition at line 338 of file fei_Graph_Impl.cpp.

int fei::Graph_Impl::getNumLocalNonzeros ( ) const

Get the number of nonzeros in the locally-owned portion of the graph.

Definition at line 346 of file fei_Graph_Impl.cpp.

int fei::Graph_Impl::getLocalRowLength ( int  row)

Get the length of a specified locally-owned row.

Definition at line 327 of file fei_Graph_Impl.cpp.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends