MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu::CutDrop::CutDropFunctor< comparison_type > Class Template Reference

Order each row by a criterion, compare the ratio of values and drop all entries once the ratio is below the threshold. More...

#include <MueLu_CutDrop.hpp>

Public Member Functions

 CutDropFunctor (comparison_type &comparison_, magnitudeType threshold)
 
KOKKOS_FORCEINLINE_FUNCTION void operator() (const local_ordinal_type &rlid) const
 

Private Types

using local_matrix_type = typename comparison_type::local_matrix_type
 
using scalar_type = typename local_matrix_type::value_type
 
using local_ordinal_type = typename local_matrix_type::ordinal_type
 
using memory_space = typename local_matrix_type::memory_space
 
using results_view = Kokkos::View< DecisionType *, memory_space >
 
using ATS = Kokkos::ArithTraits< scalar_type >
 
using magnitudeType = typename ATS::magnitudeType
 
using boundary_nodes_view = Kokkos::View< const bool *, memory_space >
 

Private Attributes

local_matrix_type A
 
comparison_type comparison
 
magnitudeType eps
 
results_view results
 
Kokkos::View< local_ordinal_type *, memory_spaceindex
 

Detailed Description

template<class comparison_type>
class MueLu::CutDrop::CutDropFunctor< comparison_type >

Order each row by a criterion, compare the ratio of values and drop all entries once the ratio is below the threshold.

Definition at line 623 of file MueLu_CutDrop.hpp.

Member Typedef Documentation

◆ local_matrix_type

template<class comparison_type >
using MueLu::CutDrop::CutDropFunctor< comparison_type >::local_matrix_type = typename comparison_type::local_matrix_type
private

Definition at line 625 of file MueLu_CutDrop.hpp.

◆ scalar_type

template<class comparison_type >
using MueLu::CutDrop::CutDropFunctor< comparison_type >::scalar_type = typename local_matrix_type::value_type
private

Definition at line 626 of file MueLu_CutDrop.hpp.

◆ local_ordinal_type

template<class comparison_type >
using MueLu::CutDrop::CutDropFunctor< comparison_type >::local_ordinal_type = typename local_matrix_type::ordinal_type
private

Definition at line 627 of file MueLu_CutDrop.hpp.

◆ memory_space

template<class comparison_type >
using MueLu::CutDrop::CutDropFunctor< comparison_type >::memory_space = typename local_matrix_type::memory_space
private

Definition at line 628 of file MueLu_CutDrop.hpp.

◆ results_view

template<class comparison_type >
using MueLu::CutDrop::CutDropFunctor< comparison_type >::results_view = Kokkos::View<DecisionType*, memory_space>
private

Definition at line 629 of file MueLu_CutDrop.hpp.

◆ ATS

template<class comparison_type >
using MueLu::CutDrop::CutDropFunctor< comparison_type >::ATS = Kokkos::ArithTraits<scalar_type>
private

Definition at line 634 of file MueLu_CutDrop.hpp.

◆ magnitudeType

template<class comparison_type >
using MueLu::CutDrop::CutDropFunctor< comparison_type >::magnitudeType = typename ATS::magnitudeType
private

Definition at line 636 of file MueLu_CutDrop.hpp.

◆ boundary_nodes_view

template<class comparison_type >
using MueLu::CutDrop::CutDropFunctor< comparison_type >::boundary_nodes_view = Kokkos::View<const bool*, memory_space>
private

Definition at line 637 of file MueLu_CutDrop.hpp.

Constructor & Destructor Documentation

◆ CutDropFunctor()

template<class comparison_type >
MueLu::CutDrop::CutDropFunctor< comparison_type >::CutDropFunctor ( comparison_type &  comparison_,
magnitudeType  threshold 
)
inline

Definition at line 646 of file MueLu_CutDrop.hpp.

Member Function Documentation

◆ operator()()

template<class comparison_type >
KOKKOS_FORCEINLINE_FUNCTION void MueLu::CutDrop::CutDropFunctor< comparison_type >::operator() ( const local_ordinal_type rlid) const
inline

Definition at line 655 of file MueLu_CutDrop.hpp.

Member Data Documentation

◆ A

template<class comparison_type >
local_matrix_type MueLu::CutDrop::CutDropFunctor< comparison_type >::A
private

Definition at line 639 of file MueLu_CutDrop.hpp.

◆ comparison

template<class comparison_type >
comparison_type MueLu::CutDrop::CutDropFunctor< comparison_type >::comparison
private

Definition at line 640 of file MueLu_CutDrop.hpp.

◆ eps

template<class comparison_type >
magnitudeType MueLu::CutDrop::CutDropFunctor< comparison_type >::eps
private

Definition at line 641 of file MueLu_CutDrop.hpp.

◆ results

template<class comparison_type >
results_view MueLu::CutDrop::CutDropFunctor< comparison_type >::results
private

Definition at line 642 of file MueLu_CutDrop.hpp.

◆ index

template<class comparison_type >
Kokkos::View<local_ordinal_type*, memory_space> MueLu::CutDrop::CutDropFunctor< comparison_type >::index
private

Definition at line 643 of file MueLu_CutDrop.hpp.


The documentation for this class was generated from the following file: