48 #ifndef IFPACK2_DETAILS_SCALEDDAMPEDRESIDUAL_DECL_HPP
49 #define IFPACK2_DETAILS_SCALEDDAMPEDRESIDUAL_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"
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>;
96 compute (multivector_type& W,
104 using import_type = Tpetra::Import<LO, GO, NT>;
105 using export_type = Tpetra::Export<LO, GO, NT>;
111 std::unique_ptr<vector_type> X_colMap_;
112 std::unique_ptr<multivector_type> V1_;
114 typename multivector_type::dual_view_type::t_host viewW_, viewB_, viewX_;
119 importVector (vector_type& X_domMap);
121 bool canFuse (
const multivector_type& B)
const;
124 unfusedCase (multivector_type& W,
128 const operator_type& A,
133 fusedCase (vector_type& W,
137 const crs_matrix_type& A,
145 #endif // IFPACK2_DETAILS_SCALEDDAMPEDRESIDUAL_DECL_HPP
Compute scaled damped residual for Chebyshev.
Definition: Ifpack2_Details_ScaledDampedResidual_decl.hpp:77