46 #ifndef MUELU_PREDROPFUNCTIONCONSTVAL_DEF_HPP 47 #define MUELU_PREDROPFUNCTIONCONSTVAL_DEF_HPP 49 #include <Xpetra_CrsGraphFactory.hpp> 52 #include "MueLu_Graph.hpp" 53 #include "Teuchos_ScalarTraits.hpp" 57 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
59 : threshold_(threshold) { }
61 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
63 if(Teuchos::ScalarTraits<Scalar>::magnitude(vals[k]) > Teuchos::ScalarTraits<Scalar>::magnitude(threshold_) || grow == gcid ) {
69 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
75 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
77 std::ostringstream out;
78 out <<
"PreDropFunctionConstVal: threshold = " << threshold_ << std::endl;
92 #define MUELU_PREDROPFUNCTIONCONSTVAL_SHORT 93 #endif // MUELU_PREDROPFUNCTIONCONSTVAL_DEF_HPP MueLu::DefaultLocalOrdinal LocalOrdinal
Namespace for MueLu classes and methods.
bool Drop(size_t lrow, GlobalOrdinal grow, size_t k, LocalOrdinal lcid, GlobalOrdinal gcid, const Teuchos::ArrayView< const LocalOrdinal > &indices, const Teuchos::ArrayView< const Scalar > &vals)
Scalar GetThreshold() const
Return threshold value.
std::string description() const
Return a simple one-line description of this object.
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
PreDropFunctionConstVal(const Scalar threshold=0.0)
Constructor.