Class template Dune::XT::LA::CommonSparseOrDenseMatrix¶
-
template<class DenseMatrixImp, class SparseMatrixImp>
class Dune::XT::LA::CommonSparseOrDenseMatrix¶ A matrix implementation checking whether the matrix is sparse enough to use sparse matrix operations.
-
ThisType &Dune::XT::LA::CommonSparseOrDenseMatrix::operator=(const ThisType &other)¶
No documentation provided.
-
ThisType &Dune::XT::LA::CommonSparseOrDenseMatrix::operator=(const DenseMatrixType &other)¶
No documentation provided.
-
inline ThisType Dune::XT::LA::CommonSparseOrDenseMatrix::copy() const¶
\ {
Required by ContainerInterface.
-
inline void Dune::XT::LA::CommonSparseOrDenseMatrix::scal(const ScalarType &alpha)¶
No documentation provided.
-
inline void Dune::XT::LA::CommonSparseOrDenseMatrix::axpy(const ScalarType &alpha, const ThisType &xx)¶
No documentation provided.
-
inline bool Dune::XT::LA::CommonSparseOrDenseMatrix::has_equal_shape(const ThisType &other) const¶
No documentation provided.
-
inline size_t Dune::XT::LA::CommonSparseOrDenseMatrix::rows() const¶
\ }
Required by MatrixInterface.
\ {
-
inline size_t Dune::XT::LA::CommonSparseOrDenseMatrix::cols() const¶
No documentation provided.
-
inline void Dune::XT::LA::CommonSparseOrDenseMatrix::add_to_entry(const size_t rr, const size_t cc, const ScalarType &value)¶
No documentation provided.
-
inline ScalarType Dune::XT::LA::CommonSparseOrDenseMatrix::get_entry(const size_t rr, const size_t cc) const¶
No documentation provided.
-
inline void Dune::XT::LA::CommonSparseOrDenseMatrix::set_entry(const size_t rr, const size_t cc, const ScalarType value)¶
No documentation provided.
-
inline void Dune::XT::LA::CommonSparseOrDenseMatrix::clear_row(const size_t rr)¶
No documentation provided.
-
inline void Dune::XT::LA::CommonSparseOrDenseMatrix::clear_col(const size_t cc)¶
No documentation provided.
-
inline void Dune::XT::LA::CommonSparseOrDenseMatrix::unit_row(const size_t rr)¶
No documentation provided.
-
inline void Dune::XT::LA::CommonSparseOrDenseMatrix::unit_col(const size_t cc)¶
No documentation provided.
-
bool Dune::XT::LA::CommonSparseOrDenseMatrix::valid() const¶
No documentation provided.
-
size_t Dune::XT::LA::CommonSparseOrDenseMatrix::non_zeros() const final¶
No documentation provided.
-
SparsityPatternDefault Dune::XT::LA::CommonSparseOrDenseMatrix::pattern(const bool prune = false, const EpsType eps =
<recovery-expr>()) const override¶ No documentation provided.
-
bool Dune::XT::LA::CommonSparseOrDenseMatrix::sparse() const¶
No documentation provided.
-
SparseMatrixType &Dune::XT::LA::CommonSparseOrDenseMatrix::sparse_matrix()¶
No documentation provided.
-
const SparseMatrixType &Dune::XT::LA::CommonSparseOrDenseMatrix::sparse_matrix() const¶
No documentation provided.
-
DenseMatrixType &Dune::XT::LA::CommonSparseOrDenseMatrix::dense_matrix()¶
No documentation provided.
-
const DenseMatrixType &Dune::XT::LA::CommonSparseOrDenseMatrix::dense_matrix() const¶
No documentation provided.
-
void Dune::XT::LA::CommonSparseOrDenseMatrix::rightmultiply(const ThisType &other)¶
No documentation provided.
-
template<>
Dune::XT::LA::CommonSparseOrDenseMatrix::CommonSparseOrDenseMatrix<DenseMatrixImp, SparseMatrixImp>(const size_t rr, const size_t cc, const SparsityPatternDefault &patt, const size_t num_mutexes = 1, EpsType eps =<recovery-expr>())¶ This is the constructor of interest which creates a sparse matrix.
-
template<>
Dune::XT::LA::CommonSparseOrDenseMatrix::CommonSparseOrDenseMatrix<DenseMatrixImp, SparseMatrixImp>(const size_t rr = 0, const size_t cc = 0, const ScalarType &value = ScalarType(0), const size_t num_mutexes = 1, bool use_sparse_if_zero = true, const EpsType eps =<recovery-expr>())¶ No documentation provided.
-
template<>
Dune::XT::LA::CommonSparseOrDenseMatrix::CommonSparseOrDenseMatrix<DenseMatrixImp, SparseMatrixImp>(const size_t rr, const size_t cc, const size_t num_mutexes, bool use_sparse = true)¶ No documentation provided.
-
template<>
Dune::XT::LA::CommonSparseOrDenseMatrix::CommonSparseOrDenseMatrix<DenseMatrixImp, SparseMatrixImp>(const ThisType &other)¶ No documentation provided.
-
bool Dune::XT::LA::CommonSparseOrDenseMatrix::sparse_¶
No documentation provided.
-
SparseMatrixType Dune::XT::LA::CommonSparseOrDenseMatrix::sparse_matrix_¶
No documentation provided.
-
DenseMatrixType Dune::XT::LA::CommonSparseOrDenseMatrix::dense_matrix_¶
No documentation provided.
-
const double Dune::XT::LA::CommonSparseOrDenseMatrix::sparse_limit¶
No documentation provided.
-
type Dune::XT::LA::CommonSparseOrDenseMatrix::ThisType¶
No documentation provided.
-
type Dune::XT::LA::CommonSparseOrDenseMatrix::InterfaceType¶
No documentation provided.
-
type Dune::XT::LA::CommonSparseOrDenseMatrix::EpsType¶
No documentation provided.
-
type Dune::XT::LA::CommonSparseOrDenseMatrix::DenseMatrixType¶
No documentation provided.
-
type Dune::XT::LA::CommonSparseOrDenseMatrix::SparseMatrixType¶
No documentation provided.
-
template<class OtherMatrixType>
explicit Dune::XT::LA::CommonSparseOrDenseMatrix::CommonSparseOrDenseMatrix<DenseMatrixImp, SparseMatrixImp>(const OtherMatrixType &mat, const typename std::enable_if<Common::MatrixAbstraction<OtherMatrixType>::is_matrix, bool>::type prune = true, const EpsType eps_in =<recovery-expr>(), const size_t num_mutexes = 1)¶ No documentation provided.
-
template<class OtherMatrixType>
explicit Dune::XT::LA::CommonSparseOrDenseMatrix::CommonSparseOrDenseMatrix<DenseMatrixImp, SparseMatrixImp>(const OtherMatrixType &mat, const typename std::enable_if<Common::MatrixAbstraction<OtherMatrixType>::is_matrix, bool>::type prune, const size_t num_mutexes)¶ No documentation provided.
-
template<class XX, class YY>
inline int Dune::XT::LA::CommonSparseOrDenseMatrix::mv(const XX &xx, YY &yy) const¶ Matrix-Vector multiplication for arbitrary vectors that support operator[]
-
template<class XX, class YY>
inline int Dune::XT::LA::CommonSparseOrDenseMatrix::mtv(const XX &xx, YY &yy) const¶ TransposedMatrix-Vector multiplication for arbitrary vectors that support operator[]
-
template<class DuneDenseMatrixImp>
void Dune::XT::LA::CommonSparseOrDenseMatrix::copy_to_densematrix(DuneDenseMatrixImp &ret) const¶ \ }
-
template<class MatrixType>
void Dune::XT::LA::CommonSparseOrDenseMatrix::rightmultiply(const MatrixType &other)¶ No documentation provided.