46#ifndef MUELU_COALESCEDROPFACTORY_DECL_HPP
47#define MUELU_COALESCEDROPFACTORY_DECL_HPP
49#include <Xpetra_Matrix_fwd.hpp>
50#include <Xpetra_MultiVector_fwd.hpp>
51#include <Xpetra_VectorFactory_fwd.hpp>
52#include <Xpetra_Vector_fwd.hpp>
53#include <Xpetra_ExportFactory_fwd.hpp>
54#include <Xpetra_ImportFactory_fwd.hpp>
55#include <Xpetra_MapFactory_fwd.hpp>
56#include <Xpetra_CrsGraph_fwd.hpp>
57#include <Xpetra_CrsGraphFactory.hpp>
58#include <Xpetra_StridedMap_fwd.hpp>
59#include <Xpetra_Map_fwd.hpp>
137#undef MUELU_COALESCEDROPFACTORY_SHORT
174 void MergeRows(
const Matrix& A,
const LO row, Array<LO>& cols,
const Array<LO>& translation)
const;
175 void MergeRowsWithDropping(
const Matrix& A,
const LO row,
const ArrayRCP<const SC>& ghostedDiagVals, SC threshold, Array<LO>& cols,
const Array<LO>& translation)
const;
179 Teuchos::RCP<Xpetra::Matrix<Scalar,LocalOrdinal,GlobalOrdinal,Node> >
BlockDiagonalize(
Level & currentLevel,
const RCP<Matrix> & A,
bool generate_matrix)
const;
182 void BlockDiagonalizeGraph(
const RCP<GraphBase> & inputGraph,
const RCP<LocalOrdinalVector> & ghostedBlockNumber, RCP<GraphBase> & outputGraph, RCP<const Import> & importer)
const;
188#define MUELU_COALESCEDROPFACTORY_SHORT
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Factory for creating a graph based on a given matrix.
void MergeRows(const Matrix &A, const LO row, Array< LO > &cols, const Array< LO > &translation) const
Method to merge rows of matrix for systems of PDEs.
Teuchos::RCP< Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > BlockDiagonalize(Level ¤tLevel, const RCP< Matrix > &A, bool generate_matrix) const
void DeclareInput(Level ¤tLevel) const
Input.
void MergeRowsWithDropping(const Matrix &A, const LO row, const ArrayRCP< const SC > &ghostedDiagVals, SC threshold, Array< LO > &cols, const Array< LO > &translation) const
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
CoalesceDropFactory()
Constructor.
virtual ~CoalesceDropFactory()
Destructor.
void Build(Level ¤tLevel) const
Build an object with this factory.
void SetPreDropFunction(const RCP< MueLu::PreDropFunctionBaseClass< Scalar, LocalOrdinal, GlobalOrdinal, Node > > &predrop)
set predrop function
void BlockDiagonalizeGraph(const RCP< GraphBase > &inputGraph, const RCP< LocalOrdinalVector > &ghostedBlockNumber, RCP< GraphBase > &outputGraph, RCP< const Import > &importer) const
RCP< PreDropFunctionBaseClass > predrop_
Class that holds all level-specific information.
Base class for factories that use one level (currentLevel).
Namespace for MueLu classes and methods.
KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar