115 using matrix_type = MatrixType;
117 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;
128 using typename Container<MatrixType>::mv_type;
129 using local_mv_type = Tpetra::MultiVector<LSC, LO, GO, NO>;
130 using typename Container<MatrixType>::map_type;
131 using typename Container<MatrixType>::vector_type;
132 using typename Container<MatrixType>::import_type;
135 using typename ContainerImpl<MatrixType, LocalScalarType>::LISC;
137 using typename ContainerImpl<MatrixType, LocalScalarType>::HostViewLocal;
138 using typename ContainerImpl<MatrixType, LocalScalarType>::HostSubviewLocal;
139 using typename ContainerImpl<MatrixType, LocalScalarType>::ConstHostSubviewLocal;
141 static_assert(std::is_same<MatrixType, Tpetra::RowMatrix<SC, LO, GO, NO>>::value,
142 "Ifpack2::DenseContainer: Please use MatrixType = Tpetra::RowMatrix.");
152 using typename Container<MatrixType>::row_matrix_type;
154 using block_crs_matrix_type = Tpetra::BlockCrsMatrix<SC, LO, GO, NO>;
171 DenseContainer (
const Teuchos::RCP<const row_matrix_type>& matrix,
172 const Teuchos::Array<Teuchos::Array<LO> >& partitions,
173 const Teuchos::RCP<const import_type>& importer,
204 virtual std::ostream&
print (std::ostream& os)
const;
215 describe (Teuchos::FancyOStream &out,
216 const Teuchos::EVerbosityLevel verbLevel =
217 Teuchos::Describable::verbLevel_default)
const;
242 solveBlock(ConstHostSubviewLocal X,
245 Teuchos::ETransp mode,
247 const LSC beta)
const;
250 std::vector<Teuchos::SerialDenseMatrix<int, LSC>> diagBlocks_;
253 mutable Teuchos::Array<int> ipiv_;
256 bool hasBlockCrsMatrix_;
259 Teuchos::Array<LSC> scalars_;
262 Teuchos::Array<GO> scalarOffsets_;
The implementation of the numerical features of Container (Jacobi, Gauss-Seidel, SGS)....
Definition Ifpack2_Container_decl.hpp:344
typename Kokkos::Details::ArithTraits< SC >::val_type ISC
Internal representation of Scalar in Kokkos::View.
Definition Ifpack2_Container_decl.hpp:135
virtual void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const
Print the object with some verbosity level to the given FancyOStream.
Definition Ifpack2_DenseContainer_def.hpp:408
static std::string getName()
Get the name of this container type for Details::constructContainer()
Definition Ifpack2_DenseContainer_def.hpp:434
virtual std::ostream & print(std::ostream &os) const
Print information about this object to the given output stream.
Definition Ifpack2_DenseContainer_def.hpp:374
DenseContainer(const Teuchos::RCP< const row_matrix_type > &matrix, const Teuchos::Array< Teuchos::Array< LO > > &partitions, const Teuchos::RCP< const import_type > &importer, bool pointIndexed)
Constructor.
Definition Ifpack2_DenseContainer_def.hpp:61