10 #ifndef MUELU_SCALARDROPPINGBASE_HPP
11 #define MUELU_SCALARDROPPINGBASE_HPP
21 template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
29 using rowptr_type =
typename local_graph_type::row_map_type::non_const_type;
35 using range_type = Kokkos::RangePolicy<LocalOrdinal, execution_space>;
38 template <
class... Functors>
41 #if !defined(HAVE_MUELU_DEBUG)
48 Kokkos::parallel_scan(
"MueLu::CoalesceDrop::CountEntries", range, countingFunctor, nnz_filtered);
51 template <
class... Functors>
53 auto lclA = A.getLocalMatrixDevice();
55 auto BlockNumber = level.template Get<Teuchos::RCP<LocalOrdinalVector>>(
"BlockNumber", factory.
GetFactory(
"BlockNumber").get());
typename device_type::memory_space memory_space
MueLu::DefaultLocalOrdinal LocalOrdinal
Kokkos::RangePolicy< LocalOrdinal, execution_space > range_type
typename crs_matrix_type::local_matrix_type local_matrix_type
Kokkos::View< DecisionType *, memory_space > results_view
static void runDroppingFunctors(matrix_type &A, results_view &results, rowptr_type &filtered_rowptr, LocalOrdinal &nnz_filtered, const bool useBlocking, Level &level, const Factory &factory, Functors &...functors)
static void runDroppingFunctorsImpl(local_matrix_type &lclA, results_view &results, rowptr_type &filtered_rowptr, LocalOrdinal &nnz_filtered, Functors &...functors)
Functor that checks that all entries have been marked.
typename Node::device_type device_type
Class that holds all level-specific information.
typename local_matrix_type::execution_space execution_space
Functor that drops all entries that are not on the block diagonal.
typename GraphType::local_graph_type local_graph_type
Functor that executes a sequence of sub-functors on each row for a problem with blockSize == 1...
typename local_graph_type::row_map_type::non_const_type rowptr_type
const RCP< const FactoryBase > GetFactory(const std::string &varName) const
Default implementation of FactoryAcceptor::GetFactory()