MueLu
Version of the Day
|
Drops entries the unscaled distance Laplacian. More...
#include <MueLu_DistanceLaplacianDropping.hpp>
Public Types | |
using | matrix_type = Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > |
using | local_matrix_type = typename matrix_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 | diag_vec_type = Xpetra::MultiVector< Scalar, LocalOrdinal, GlobalOrdinal, Node > |
using | diag_view_type = typename Kokkos::DualView< const scalar_type *, Kokkos::LayoutStride, typename Node::device_type, Kokkos::MemoryUnmanaged >::t_dev |
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 > |
using | mATS = Kokkos::ArithTraits< magnitudeType > |
Public Member Functions | |
DropFunctor (matrix_type &A_, magnitudeType threshold, DistanceFunctorType &dist2_, results_view &results_) | |
KOKKOS_FORCEINLINE_FUNCTION void | operator() (local_ordinal_type rlid) const |
Private Attributes | |
local_matrix_type | A |
magnitudeType | eps |
Teuchos::RCP< diag_vec_type > | diagVec |
diag_view_type | diag |
DistanceFunctorType | dist2 |
results_view | results |
const scalar_type | one = ATS::one() |
Drops entries the unscaled distance Laplacian.
Evaluates the dropping criterion
\[ \frac{|d_{ij}|^2}{|d_{ii}| |d_{jj}|} \le \theta^2 \]
where \(d_{ij}\) is a distance metric.
Definition at line 413 of file MueLu_DistanceLaplacianDropping.hpp.
using MueLu::DistanceLaplacian::DropFunctor< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::matrix_type = Xpetra::Matrix<Scalar, LocalOrdinal, GlobalOrdinal, Node> |
Definition at line 415 of file MueLu_DistanceLaplacianDropping.hpp.
using MueLu::DistanceLaplacian::DropFunctor< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::local_matrix_type = typename matrix_type::local_matrix_type |
Definition at line 416 of file MueLu_DistanceLaplacianDropping.hpp.
using MueLu::DistanceLaplacian::DropFunctor< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::scalar_type = typename local_matrix_type::value_type |
Definition at line 417 of file MueLu_DistanceLaplacianDropping.hpp.
using MueLu::DistanceLaplacian::DropFunctor< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::local_ordinal_type = typename local_matrix_type::ordinal_type |
Definition at line 418 of file MueLu_DistanceLaplacianDropping.hpp.
using MueLu::DistanceLaplacian::DropFunctor< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::memory_space = typename local_matrix_type::memory_space |
Definition at line 419 of file MueLu_DistanceLaplacianDropping.hpp.
using MueLu::DistanceLaplacian::DropFunctor< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::diag_vec_type = Xpetra::MultiVector<Scalar, LocalOrdinal, GlobalOrdinal, Node> |
Definition at line 420 of file MueLu_DistanceLaplacianDropping.hpp.
using MueLu::DistanceLaplacian::DropFunctor< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::diag_view_type = typename Kokkos::DualView<const scalar_type*, Kokkos::LayoutStride, typename Node::device_type, Kokkos::MemoryUnmanaged>::t_dev |
Definition at line 421 of file MueLu_DistanceLaplacianDropping.hpp.
using MueLu::DistanceLaplacian::DropFunctor< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::results_view = Kokkos::View<DecisionType*, memory_space> |
Definition at line 423 of file MueLu_DistanceLaplacianDropping.hpp.
using MueLu::DistanceLaplacian::DropFunctor< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::ATS = Kokkos::ArithTraits<scalar_type> |
Definition at line 425 of file MueLu_DistanceLaplacianDropping.hpp.
using MueLu::DistanceLaplacian::DropFunctor< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::magnitudeType = typename ATS::magnitudeType |
Definition at line 426 of file MueLu_DistanceLaplacianDropping.hpp.
using MueLu::DistanceLaplacian::DropFunctor< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::boundary_nodes_view = Kokkos::View<const bool*, memory_space> |
Definition at line 427 of file MueLu_DistanceLaplacianDropping.hpp.
using MueLu::DistanceLaplacian::DropFunctor< Scalar, LocalOrdinal, GlobalOrdinal, Node, DistanceFunctorType, measure >::mATS = Kokkos::ArithTraits<magnitudeType> |
Definition at line 428 of file MueLu_DistanceLaplacianDropping.hpp.
|
inline |
Definition at line 440 of file MueLu_DistanceLaplacianDropping.hpp.
|
inline |
Definition at line 457 of file MueLu_DistanceLaplacianDropping.hpp.
|
private |
Definition at line 431 of file MueLu_DistanceLaplacianDropping.hpp.
|
private |
Definition at line 432 of file MueLu_DistanceLaplacianDropping.hpp.
|
private |
Definition at line 433 of file MueLu_DistanceLaplacianDropping.hpp.
|
private |
Definition at line 434 of file MueLu_DistanceLaplacianDropping.hpp.
|
private |
Definition at line 435 of file MueLu_DistanceLaplacianDropping.hpp.
|
private |
Definition at line 436 of file MueLu_DistanceLaplacianDropping.hpp.
|
private |
Definition at line 437 of file MueLu_DistanceLaplacianDropping.hpp.