EpetraExt Package Browser (Single Doxygen Collection) Development
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
EpetraExt::BlockAdjacencyGraph Class Reference

#include <EpetraExt_BlockAdjacencyGraph.h>

Public Member Functions

 ~BlockAdjacencyGraph ()
 Destructor.
 
 BlockAdjacencyGraph ()
 Constructor.
 
Teuchos::RCP< Epetra_CrsGraphcompute (Epetra_CrsGraph &B, int nbrr, std::vector< int > &r, std::vector< double > &weights, bool verbose=false)
 Constructs an adjacency graph representing the block connectivity of the input graph, where nbrr is the number of block rows in B and r contains the row index where each block begins.
 

Private Member Functions

template<typename int_type >
Teuchos::RCP< Epetra_CrsGraphcompute (Epetra_CrsGraph &B, int nbrr, std::vector< int > &r, std::vector< double > &weights, bool verbose=false)
 
int * csr_bst (int n)
 
int csr_bstrootindex (int n)
 

Detailed Description

Definition at line 62 of file EpetraExt_BlockAdjacencyGraph.h.

Constructor & Destructor Documentation

◆ ~BlockAdjacencyGraph()

EpetraExt::BlockAdjacencyGraph::~BlockAdjacencyGraph ( )
inline

Destructor.

Definition at line 69 of file EpetraExt_BlockAdjacencyGraph.h.

◆ BlockAdjacencyGraph()

EpetraExt::BlockAdjacencyGraph::BlockAdjacencyGraph ( )
inline

Constructor.

Definition at line 74 of file EpetraExt_BlockAdjacencyGraph.h.

Member Function Documentation

◆ compute() [1/2]

Teuchos::RCP< Epetra_CrsGraph > EpetraExt::BlockAdjacencyGraph::compute ( Epetra_CrsGraph & B,
int nbrr,
std::vector< int > & r,
std::vector< double > & weights,
bool verbose = false )

Constructs an adjacency graph representing the block connectivity of the input graph, where nbrr is the number of block rows in B and r contains the row index where each block begins.

A reference-counted pointer to an Epetra_CrsGraph that has nbrr rows is returned as well as the vector of weights. This vector is of length nbrr returns some weighting on the block adjacency graph that can be used to balance the original graph B. Right now, that weighting is just the number of rows in each block.

Definition at line 246 of file EpetraExt_BlockAdjacencyGraph.cpp.

◆ compute() [2/2]

template<typename int_type >
Teuchos::RCP< Epetra_CrsGraph > EpetraExt::BlockAdjacencyGraph::compute ( Epetra_CrsGraph & B,
int nbrr,
std::vector< int > & r,
std::vector< double > & weights,
bool verbose = false )
private

Definition at line 90 of file EpetraExt_BlockAdjacencyGraph.cpp.

◆ csr_bst()

int * EpetraExt::BlockAdjacencyGraph::csr_bst ( int n)
private

Definition at line 271 of file EpetraExt_BlockAdjacencyGraph.cpp.

◆ csr_bstrootindex()

int EpetraExt::BlockAdjacencyGraph::csr_bstrootindex ( int n)
private

Definition at line 308 of file EpetraExt_BlockAdjacencyGraph.cpp.


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