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 189 #endif // MUELU_COALESCEDROPFACTORY_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
RCP< PreDropFunctionBaseClass > predrop_
Namespace for MueLu classes and methods.
CoalesceDropFactory()
Constructor.
MueLu::DefaultScalar Scalar
void DeclareInput(Level ¤tLevel) const
Input.
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
void MergeRowsWithDropping(const Matrix &A, const LO row, const ArrayRCP< const SC > &ghostedDiagVals, SC threshold, Array< LO > &cols, const Array< LO > &translation) const
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
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
virtual ~CoalesceDropFactory()
Destructor.
Base class for factories that use one level (currentLevel).
void BlockDiagonalizeGraph(const RCP< GraphBase > &inputGraph, const RCP< LocalOrdinalVector > &ghostedBlockNumber, RCP< GraphBase > &outputGraph, RCP< const Import > &importer) const