48 #ifndef IFPACK2_DETAILS_INVERSEDIAGONALKERNEL_DECL_HPP 49 #define IFPACK2_DETAILS_INVERSEDIAGONALKERNEL_DECL_HPP 51 #include "Ifpack2_config.h" 52 #include "Tpetra_CrsMatrix_fwd.hpp" 53 #include "Tpetra_MultiVector_fwd.hpp" 54 #include "Tpetra_Operator_fwd.hpp" 55 #include "Tpetra_Vector_fwd.hpp" 56 #include "Tpetra_Export_fwd.hpp" 57 #include "Tpetra_Import_fwd.hpp" 58 #include "Teuchos_RCP.hpp" 76 template<
class TpetraOperatorType>
79 using SC =
typename TpetraOperatorType::scalar_type;
80 using LO =
typename TpetraOperatorType::local_ordinal_type;
81 using GO =
typename TpetraOperatorType::global_ordinal_type;
82 using NT =
typename TpetraOperatorType::node_type;
84 using crs_matrix_type = Tpetra::CrsMatrix<SC, LO, GO, NT>;
85 using multivector_type = Tpetra::MultiVector<SC, LO, GO, NT>;
86 using operator_type = Tpetra::Operator<SC, LO, GO, NT>;
87 using vector_type = Tpetra::Vector<SC, LO, GO, NT>;
88 using magnitude_type =
typename Teuchos::ScalarTraits<SC>::magnitudeType;
89 using device_type =
typename NT::device_type;
90 using offset_type = Kokkos::View<size_t*, device_type>;
96 setMatrix (
const Teuchos::RCP<const operator_type>& A);
99 compute (vector_type& D_inv,
100 bool do_l1, magnitude_type L1Eta,
101 bool fixTinyDiagEntries, magnitude_type MinDiagonalValue);
104 Teuchos::RCP<const operator_type> A_op_;
105 Teuchos::RCP<const crs_matrix_type> A_crs_;
106 offset_type offsets_;
113 #endif // IFPACK2_DETAILS_INVERSEINVERSEDIAGONALKERNEL_DECL_HPP Ifpack2 implementation details.
Compute scaled damped residual for Chebyshev.
Definition: Ifpack2_Details_InverseDiagonalKernel_decl.hpp:77
Preconditioners and smoothers for Tpetra sparse matrices.
Definition: Ifpack2_AdditiveSchwarz_decl.hpp:73