42 #ifndef IFPACK2_BANDEDCONTAINER_DECL_HPP
43 #define IFPACK2_BANDEDCONTAINER_DECL_HPP
48 #include "Ifpack2_Container.hpp"
49 #include "Tpetra_MultiVector.hpp"
50 #include "Tpetra_Map.hpp"
51 #include "Tpetra_RowMatrix.hpp"
52 #include "Teuchos_SerialBandDenseMatrix.hpp"
101 template<
class MatrixType,
class LocalScalarType>
114 using matrix_type = MatrixType;
116 using LSC = LocalScalarType;
120 using typename Container<MatrixType>::SC;
122 using typename Container<MatrixType>::LO;
124 using typename Container<MatrixType>::GO;
126 using typename Container<MatrixType>::NO;
129 using typename ContainerImpl<MatrixType, LSC>::LISC;
131 using typename Container<MatrixType>::mv_type;
132 using typename Container<MatrixType>::map_type;
133 using local_mv_type = Tpetra::MultiVector<LSC, LO, GO, NO>;
134 using typename Container<MatrixType>::vector_type;
135 using typename Container<MatrixType>::import_type;
138 using typename ContainerImpl<MatrixType, LSC>::HostSubviewLocal;
139 using HostViewLocal =
typename local_mv_type::dual_view_type::t_host;
141 static_assert(std::is_same<MatrixType,
142 Tpetra::RowMatrix<SC, LO, GO, NO> >::value,
143 "Ifpack2::BandedContainer: Please use MatrixType = Tpetra::RowMatrix.");
153 using typename Container<MatrixType>::row_matrix_type;
171 const Teuchos::Array<Teuchos::Array<LO> >& partitions,
172 const Teuchos::RCP<const import_type>&,
185 virtual void setParameters (
const Teuchos::ParameterList& List);
210 virtual std::ostream&
print (std::ostream& os)
const;
221 describe (Teuchos::FancyOStream &out,
222 const Teuchos::EVerbosityLevel verbLevel =
223 Teuchos::Describable::verbLevel_default)
const;
249 solveBlock(HostSubviewLocal X,
252 Teuchos::ETransp mode,
254 const LSC beta)
const override;
257 std::vector<Teuchos::SerialBandDenseMatrix<int, LSC> > diagBlocks_;
260 Teuchos::Array<int> ipiv_;
262 Teuchos::Array<LO> kl_;
263 Teuchos::Array<LO> ku_;
266 Teuchos::Array<LSC> scalars_;
269 Teuchos::Array<LO> scalarOffsets_;
274 #endif // IFPACK2_BANDEDCONTAINER_DECL_HPP