80 using matrix_type = MatrixType;
82 using LSC = LocalScalarType;
86 using typename Container<MatrixType>::SC;
88 using typename Container<MatrixType>::LO;
90 using typename Container<MatrixType>::GO;
92 using typename Container<MatrixType>::NO;
95 using typename ContainerImpl<MatrixType, LSC>::LISC;
97 using typename Container<MatrixType>::mv_type;
98 using typename Container<MatrixType>::map_type;
99 using local_mv_type = Tpetra::MultiVector<LSC, LO, GO, NO>;
100 using typename Container<MatrixType>::vector_type;
101 using typename Container<MatrixType>::import_type;
104 using typename ContainerImpl<MatrixType, LSC>::HostSubviewLocal;
105 using typename ContainerImpl<MatrixType, LSC>::ConstHostSubviewLocal;
106 using typename ContainerImpl<MatrixType, LSC>::block_crs_matrix_type;
107 using HostViewLocal =
typename local_mv_type::dual_view_type::t_host;
109 static_assert(std::is_same<MatrixType,
110 Tpetra::RowMatrix<SC, LO, GO, NO> >::value,
111 "Ifpack2::BandedContainer: Please use MatrixType = Tpetra::RowMatrix.");
121 using typename Container<MatrixType>::row_matrix_type;
139 const Teuchos::Array<Teuchos::Array<LO> >& partitions,
140 const Teuchos::RCP<const import_type>&,
153 virtual void setParameters(
const Teuchos::ParameterList& List)
override;
163 virtual void compute()
override;
169 void clearBlocks()
override;
178 virtual std::ostream&
print(std::ostream& os)
const override;
189 describe(Teuchos::FancyOStream& out,
190 const Teuchos::EVerbosityLevel verbLevel =
191 Teuchos::Describable::verbLevel_default)
const override;
200 void extract()
override;
216 solveBlock(ConstHostSubviewLocal X,
219 Teuchos::ETransp mode,
221 const LSC beta)
const override;
224 std::vector<Teuchos::SerialBandDenseMatrix<int, LSC> > diagBlocks_;
227 Teuchos::Array<int> ipiv_;
229 Teuchos::Array<LO> kl_;
230 Teuchos::Array<LO> ku_;
233 Teuchos::Array<LSC> scalars_;
236 Teuchos::Array<LO> scalarOffsets_;
virtual std::ostream & print(std::ostream &os) const override
Print information about this object to the given output stream.
Definition Ifpack2_BandedContainer_def.hpp:455
virtual void setParameters(const Teuchos::ParameterList &List) override
Set all necessary parameters (super- and sub-diagonal bandwidth)
Definition Ifpack2_BandedContainer_def.hpp:50
static std::string getName()
Get the name of this container type for Details::constructContainer()
Definition Ifpack2_BandedContainer_def.hpp:500
virtual void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const override
Print the object with some verbosity level to the given FancyOStream.
Definition Ifpack2_BandedContainer_def.hpp:483
The implementation of the numerical features of Container (Jacobi, Gauss-Seidel, SGS)....
Definition Ifpack2_Container_decl.hpp:311
typename Kokkos::ArithTraits< SC >::val_type ISC
Internal representation of Scalar in Kokkos::View.
Definition Ifpack2_Container_decl.hpp:104