70:
public ContainerImpl<MatrixType, LocalScalarType>
81 using matrix_type = MatrixType;
83 using LSC = LocalScalarType;
87 using typename Container<MatrixType>::SC;
89 using typename Container<MatrixType>::LO;
91 using typename Container<MatrixType>::GO;
93 using typename Container<MatrixType>::NO;
96 using typename ContainerImpl<MatrixType, LSC>::LISC;
98 using typename Container<MatrixType>::mv_type;
99 using typename Container<MatrixType>::map_type;
100 using local_mv_type = Tpetra::MultiVector<LSC, LO, GO, NO>;
101 using typename Container<MatrixType>::vector_type;
102 using typename Container<MatrixType>::import_type;
105 using typename ContainerImpl<MatrixType, LSC>::HostSubviewLocal;
106 using typename ContainerImpl<MatrixType, LSC>::ConstHostSubviewLocal;
107 using typename ContainerImpl<MatrixType,LSC>::block_crs_matrix_type;
108 using HostViewLocal =
typename local_mv_type::dual_view_type::t_host;
110 static_assert(std::is_same<MatrixType,
111 Tpetra::RowMatrix<SC, LO, GO, NO> >::value,
112 "Ifpack2::BandedContainer: Please use MatrixType = Tpetra::RowMatrix.");
122 using typename Container<MatrixType>::row_matrix_type;
140 const Teuchos::Array<Teuchos::Array<LO> >& partitions,
141 const Teuchos::RCP<const import_type>&,
154 virtual void setParameters (
const Teuchos::ParameterList& List)
override;
164 virtual void compute ()
override;
170 void clearBlocks()
override;
179 virtual std::ostream&
print (std::ostream& os)
const override;
190 describe (Teuchos::FancyOStream &out,
191 const Teuchos::EVerbosityLevel verbLevel =
192 Teuchos::Describable::verbLevel_default)
const override;
218 solveBlock(ConstHostSubviewLocal X,
221 Teuchos::ETransp mode,
223 const LSC beta)
const override;
226 std::vector<Teuchos::SerialBandDenseMatrix<int, LSC> > diagBlocks_;
229 Teuchos::Array<int> ipiv_;
231 Teuchos::Array<LO> kl_;
232 Teuchos::Array<LO> ku_;
235 Teuchos::Array<LSC> scalars_;
238 Teuchos::Array<LO> scalarOffsets_;
BandedContainer(const Teuchos::RCP< const row_matrix_type > &matrix, const Teuchos::Array< Teuchos::Array< LO > > &partitions, const Teuchos::RCP< const import_type > &, bool pointIndexed)
Constructor.
Definition Ifpack2_BandedContainer_def.hpp:29
virtual std::ostream & print(std::ostream &os) const override
Print information about this object to the given output stream.
Definition Ifpack2_BandedContainer_def.hpp:497
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:549
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:530
typename Kokkos::ArithTraits< SC >::val_type ISC
Internal representation of Scalar in Kokkos::View.
Definition Ifpack2_Container_decl.hpp:102