46 #ifndef MUELU_LOCALAGGREGATIONALGORITHM_DECL_HPP
47 #define MUELU_LOCALAGGREGATIONALGORITHM_DECL_HPP
95 template <
class LocalOrdinal =
int,
class GlobalOrdinal = LocalOrdinal,
class Node = KokkosClassic::DefaultNode::DefaultNodeType>
97 #undef MUELU_LOCALAGGREGATIONALGORITHM_SHORT
158 #define MUELU_LOCALAGGREGATIONALGORITHM_SHORT
159 #endif // MUELU_LOCALAGGREGATIONALGORITHM_DECL_HPP
const std::string & GetOrdering() const
int GetMaxNeighAlreadySelected() const
void SetMaxNeighAlreadySelected(int maxNeighAlreadySelected)
Container class for aggregation information.
void CoarsenUncoupled(GraphBase const &graph, Aggregates &aggregates) const
Local aggregation.
int maxNeighAlreadySelected_
Algorithm for coarsening a graph with uncoupled aggregation.
void RandomReorder(Teuchos::ArrayRCP< LO > list) const
Utility to take a list of integers and reorder them randomly (by using a local permutation).
LocalAggregationAlgorithm()
Constructor.
Teuchos::ArrayRCP< int > list
int GetMinNodesPerAggregate() const
void SetOrdering(const std::string &ordering)
virtual ~LocalAggregationAlgorithm()
Destructor.
std::string ordering_
Aggregation options (TODO: Teuchos::ParameterList?)
int RandomOrdinal(int min, int max) const
Generate a random number in the range [min, max].
void SetMinNodesPerAggregate(int minNodesPerAggregate)
MueLu representation of a graph.
Base class for MueLu classes.
struct MueLu::MueLu_SuperNode_Struct MueLu_SuperNode
struct MueLu_SuperNode_Struct * next
int minNodesPerAggregate_