Teuchos - Trilinos Tools Package Version of the Day
|
Adds entries with optional symmetry to a sparse graph. More...
#include <Teuchos_MatrixMarket_SymmetrizingGraphAdder.hpp>
Public Types | |
typedef AdderType::index_type | index_type |
The type of indices of the sparse graph. | |
Public Member Functions | |
SymmetrizingGraphAdder (const Teuchos::RCP< AdderType > &adder, const std::string &symmType) | |
Constructor. | |
void | operator() (const index_type i, const index_type j) |
Add entry (i,j), and optionally symmetrize. | |
Teuchos::RCP< AdderType > | getAdder () const |
Persisting non-const view of the underlying adder object. | |
Adds entries with optional symmetry to a sparse graph.
This class wraps any existing class (AdderType) with the interface shown below. Given the Matrix Market symmetry type, this class' corresponding operator() may invoke AdderType's operator() twice, in order to add entry (j,i) if entry (i,j) is to be added.
AdderType | A class with at least the following interface: class AdderType {
public:
typedef ... value_type; // Ellipsis represents the actual type
};
AdderType::index_type index_type The type of indices of the sparse graph. Smart reference counting pointer class for automatic garbage collection. Definition Teuchos_RCPDecl.hpp:429 |
Definition at line 95 of file Teuchos_MatrixMarket_SymmetrizingGraphAdder.hpp.
typedef AdderType::index_type Teuchos::MatrixMarket::SymmetrizingGraphAdder< AdderType >::index_type |
The type of indices of the sparse graph.
Definition at line 98 of file Teuchos_MatrixMarket_SymmetrizingGraphAdder.hpp.
|
inline |
Constructor.
adder | [in/out] The wrapped AdderType instance |
symmType | [in] Canonical Matrix Market string representing the symmetry storage type of the matrix data. |
Definition at line 106 of file Teuchos_MatrixMarket_SymmetrizingGraphAdder.hpp.
|
inline |
Add entry (i,j), and optionally symmetrize.
Definition at line 115 of file Teuchos_MatrixMarket_SymmetrizingGraphAdder.hpp.
|
inline |
Persisting non-const view of the underlying adder object.
This violates encapsulation, so please be careful with this.
Definition at line 137 of file Teuchos_MatrixMarket_SymmetrizingGraphAdder.hpp.