MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 > Struct Template Reference

#include <MueLu_CutDrop.hpp>

Public Member Functions

KOKKOS_INLINE_FUNCTION Comparator (const local_matrix_type2 &A_, const diag_view_type2 &diag_, const DistanceFunctorType2 *dist2_, local_ordinal_type rlid_, const results_view &results_, values_view &values_)
 
KOKKOS_FORCEINLINE_FUNCTION magnitudeType get_value (size_t x) const
 
KOKKOS_INLINE_FUNCTION bool operator() (size_t x, size_t y) const
 

Private Types

using scalar_type = typename local_matrix_type2::value_type
 
using local_ordinal_type = typename local_matrix_type2::ordinal_type
 
using memory_space = typename local_matrix_type2::memory_space
 
using results_view = Kokkos::View< DecisionType *, memory_space >
 
using ATS = Kokkos::ArithTraits< scalar_type >
 
using magnitudeType = typename ATS::magnitudeType
 
using mATS = Kokkos::ArithTraits< magnitudeType >
 
using values_view = Kokkos::View< magnitudeType *, memory_space >
 

Private Member Functions

KOKKOS_INLINE_FUNCTION magnitudeType get_value_impl (size_t x) const
 

Private Attributes

const local_matrix_type2 A
 
const diag_view_type2 diag
 
const DistanceFunctorType2 * dist2
 
const local_ordinal_type rlid
 
const local_ordinal_type offset
 
const results_view results
 
values_view values
 
const scalar_type one = ATS::one()
 
const scalar_type zero = ATS::zero()
 
const magnitudeType mzero = mATS::zero()
 

Detailed Description

template<class Scalar, class LocalOrdinal, class GlobalOrdinal, class Node, class DistanceFunctorType, Misc::StrengthMeasure measure>
template<class local_matrix_type2, class DistanceFunctorType2, class diag_view_type2>
struct MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >

Definition at line 488 of file MueLu_CutDrop.hpp.

Member Typedef Documentation

◆ scalar_type

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
using MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::scalar_type = typename local_matrix_type2::value_type
private

Definition at line 490 of file MueLu_CutDrop.hpp.

◆ local_ordinal_type

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
using MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::local_ordinal_type = typename local_matrix_type2::ordinal_type
private

Definition at line 491 of file MueLu_CutDrop.hpp.

◆ memory_space

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
using MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::memory_space = typename local_matrix_type2::memory_space
private

Definition at line 492 of file MueLu_CutDrop.hpp.

◆ results_view

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
using MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::results_view = Kokkos::View<DecisionType*, memory_space>
private

Definition at line 493 of file MueLu_CutDrop.hpp.

◆ ATS

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
using MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::ATS = Kokkos::ArithTraits<scalar_type>
private

Definition at line 498 of file MueLu_CutDrop.hpp.

◆ magnitudeType

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
using MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::magnitudeType = typename ATS::magnitudeType
private

Definition at line 500 of file MueLu_CutDrop.hpp.

◆ mATS

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
using MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::mATS = Kokkos::ArithTraits<magnitudeType>
private

Definition at line 504 of file MueLu_CutDrop.hpp.

◆ values_view

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
using MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::values_view = Kokkos::View<magnitudeType*, memory_space>
private

Definition at line 507 of file MueLu_CutDrop.hpp.

Constructor & Destructor Documentation

◆ Comparator()

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
KOKKOS_INLINE_FUNCTION MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::Comparator ( const local_matrix_type2 &  A_,
const diag_view_type2 &  diag_,
const DistanceFunctorType2 *  dist2_,
local_ordinal_type  rlid_,
const results_view results_,
values_view values_ 
)
inline

Definition at line 523 of file MueLu_CutDrop.hpp.

Member Function Documentation

◆ get_value()

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
KOKKOS_FORCEINLINE_FUNCTION magnitudeType MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::get_value ( size_t  x) const
inline

Definition at line 537 of file MueLu_CutDrop.hpp.

◆ operator()()

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
KOKKOS_INLINE_FUNCTION bool MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::operator() ( size_t  x,
size_t  y 
) const
inline

Definition at line 542 of file MueLu_CutDrop.hpp.

◆ get_value_impl()

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
KOKKOS_INLINE_FUNCTION magnitudeType MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::get_value_impl ( size_t  x) const
inlineprivate

Definition at line 563 of file MueLu_CutDrop.hpp.

Member Data Documentation

◆ A

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
const local_matrix_type2 MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::A
private

Definition at line 509 of file MueLu_CutDrop.hpp.

◆ diag

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
const diag_view_type2 MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::diag
private

Definition at line 510 of file MueLu_CutDrop.hpp.

◆ dist2

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
const DistanceFunctorType2* MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::dist2
private

Definition at line 511 of file MueLu_CutDrop.hpp.

◆ rlid

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
const local_ordinal_type MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::rlid
private

Definition at line 512 of file MueLu_CutDrop.hpp.

◆ offset

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
const local_ordinal_type MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::offset
private

Definition at line 513 of file MueLu_CutDrop.hpp.

◆ results

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
const results_view MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::results
private

Definition at line 514 of file MueLu_CutDrop.hpp.

◆ values

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
values_view MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::values
mutableprivate

Definition at line 515 of file MueLu_CutDrop.hpp.

◆ one

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
const scalar_type MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::one = ATS::one()
private

Definition at line 517 of file MueLu_CutDrop.hpp.

◆ zero

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
const scalar_type MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::zero = ATS::zero()
private

Definition at line 518 of file MueLu_CutDrop.hpp.

◆ mzero

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node , class DistanceFunctorType , Misc::StrengthMeasure measure>
template<class local_matrix_type2 , class DistanceFunctorType2 , class diag_view_type2 >
const magnitudeType MueLu::CutDrop::ScaledDistanceLaplacianComparison< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::Comparator< local_matrix_type2, DistanceFunctorType2, diag_view_type2 >::mzero = mATS::zero()
private

Definition at line 519 of file MueLu_CutDrop.hpp.


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