Class template Dune::XT::LA::CommonSparseMatrix

template<class ScalarImp, Common::StorageLayout layout>
class Dune::XT::LA::CommonSparseMatrix

A sparse matrix implementation of the MatrixInterface with row major memory layout.

ThisType &Dune::XT::LA::CommonSparseMatrix::operator=(const ThisType &other)

No documentation provided.

void Dune::XT::LA::CommonSparseMatrix::clear()

No documentation provided.

inline ThisType Dune::XT::LA::CommonSparseMatrix::copy() const

\ {

Required by ContainerInterface.

inline void Dune::XT::LA::CommonSparseMatrix::scal(const ScalarType &alpha)

No documentation provided.

inline void Dune::XT::LA::CommonSparseMatrix::axpy(const ScalarType &alpha, const ThisType &xx)

No documentation provided.

inline bool Dune::XT::LA::CommonSparseMatrix::has_equal_shape(const ThisType &other) const

No documentation provided.

inline size_t Dune::XT::LA::CommonSparseMatrix::rows() const

\ }

Required by MatrixInterface.

\ {

inline size_t Dune::XT::LA::CommonSparseMatrix::cols() const

No documentation provided.

inline void Dune::XT::LA::CommonSparseMatrix::add_to_entry(const size_t rr, const size_t cc, const ScalarType &value)

No documentation provided.

inline ScalarType Dune::XT::LA::CommonSparseMatrix::get_entry(const size_t rr, const size_t cc) const

No documentation provided.

inline void Dune::XT::LA::CommonSparseMatrix::set_entry(const size_t rr, const size_t cc, const ScalarType value)

No documentation provided.

inline void Dune::XT::LA::CommonSparseMatrix::start_row()

No documentation provided.

inline void Dune::XT::LA::CommonSparseMatrix::end_row()

No documentation provided.

inline void Dune::XT::LA::CommonSparseMatrix::push_entry(const size_t cc, const ScalarType value)

No documentation provided.

inline void Dune::XT::LA::CommonSparseMatrix::clear_row(const size_t rr)

No documentation provided.

inline void Dune::XT::LA::CommonSparseMatrix::clear_col(const size_t cc)

No documentation provided.

inline void Dune::XT::LA::CommonSparseMatrix::unit_row(const size_t rr)

No documentation provided.

inline void Dune::XT::LA::CommonSparseMatrix::unit_col(const size_t cc)

No documentation provided.

bool Dune::XT::LA::CommonSparseMatrix::valid() const

No documentation provided.

size_t Dune::XT::LA::CommonSparseMatrix::non_zeros() const final

No documentation provided.

SparsityPatternDefault Dune::XT::LA::CommonSparseMatrix::pattern(const bool prune = false, const EpsType eps = <recovery-expr>()) const override

No documentation provided.

ScalarType *Dune::XT::LA::CommonSparseMatrix::entries()

No documentation provided.

const ScalarType *Dune::XT::LA::CommonSparseMatrix::entries() const

No documentation provided.

size_t *Dune::XT::LA::CommonSparseMatrix::outer_index_ptr()

No documentation provided.

const size_t *Dune::XT::LA::CommonSparseMatrix::outer_index_ptr() const

No documentation provided.

size_t *Dune::XT::LA::CommonSparseMatrix::inner_index_ptr()

No documentation provided.

const size_t *Dune::XT::LA::CommonSparseMatrix::inner_index_ptr() const

No documentation provided.

const EpsType &Dune::XT::LA::CommonSparseMatrix::eps()

No documentation provided.

size_t Dune::XT::LA::CommonSparseMatrix::get_entry_index(const size_t rr, const size_t cc, const bool throw_if_not_in_pattern = true) const

No documentation provided.

bool Dune::XT::LA::CommonSparseMatrix::is_zero(const ScalarType val, const ScalarType eps) const

No documentation provided.

template<>
Dune::XT::LA::CommonSparseMatrix::CommonSparseMatrix<ScalarImp, layout>(const size_t rr, const size_t cc, const SparsityPatternDefault &patt, const size_t num_mutexes = 1, const EpsType eps = <recovery-expr>())

This is the constructor of interest which creates a sparse matrix.

template<>
Dune::XT::LA::CommonSparseMatrix::CommonSparseMatrix<ScalarImp, layout>(const size_t rr = 0, const size_t cc = 0, const ScalarType &value = ScalarType(0), const size_t num_mutexes = 1, const EpsType eps = <recovery-expr>())

No documentation provided.

template<>
Dune::XT::LA::CommonSparseMatrix::CommonSparseMatrix<ScalarImp, layout>(const ThisType &other)

No documentation provided.

size_t Dune::XT::LA::CommonSparseMatrix::num_cols_

No documentation provided.

size_t Dune::XT::LA::CommonSparseMatrix::num_rows_

No documentation provided.

std::shared_ptr<EntriesVectorType> Dune::XT::LA::CommonSparseMatrix::entries_

No documentation provided.

std::shared_ptr<IndexVectorType> Dune::XT::LA::CommonSparseMatrix::row_pointers_

No documentation provided.

std::shared_ptr<IndexVectorType> Dune::XT::LA::CommonSparseMatrix::column_indices_

No documentation provided.

int Dune::XT::LA::CommonSparseMatrix::mutexes_

No documentation provided.

EpsType Dune::XT::LA::CommonSparseMatrix::eps_

No documentation provided.

type Dune::XT::LA::CommonSparseMatrix::ThisType

No documentation provided.

type Dune::XT::LA::CommonSparseMatrix::InterfaceType

No documentation provided.

type Dune::XT::LA::CommonSparseMatrix::EntriesVectorType

No documentation provided.

type Dune::XT::LA::CommonSparseMatrix::EpsType

No documentation provided.

type Dune::XT::LA::CommonSparseMatrix::IndexVectorType

No documentation provided.

type Dune::XT::LA::CommonSparseMatrix::MutexesType

No documentation provided.

template<class OtherMatrixType>
explicit Dune::XT::LA::CommonSparseMatrix::CommonSparseMatrix<ScalarImp, layout>(const OtherMatrixType &mat, const typename std::enable_if<Common::MatrixAbstraction<OtherMatrixType>::is_matrix, bool>::type prune = false, const EpsType eps = <recovery-expr>(), const size_t num_mutexes = 1)

No documentation provided.

template<class OtherMatrixType>
explicit Dune::XT::LA::CommonSparseMatrix::CommonSparseMatrix<ScalarImp, layout>(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 DenseMatrixImp>
void Dune::XT::LA::CommonSparseMatrix::copy_to_densematrix(DenseMatrixImp &ret) const

No documentation provided.

template<class OtherMatrixImp>
ThisType &Dune::XT::LA::CommonSparseMatrix::assign(const OtherMatrixImp &other, const SparsityPatternDefault &pattern)

No documentation provided.

template<class OtherMatrixImp>
int &Dune::XT::LA::CommonSparseMatrix::operator=(const OtherMatrixImp &other)

No documentation provided.

template<class XX, class YY>
inline int Dune::XT::LA::CommonSparseMatrix::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::CommonSparseMatrix::mtv(const XX &xx, YY &yy) const

TransposedMatrix-Vector multiplication for arbitrary vectors that support operator[]

template<class MatrixType>
void Dune::XT::LA::CommonSparseMatrix::rightmultiply(const MatrixType &other)

\ }