Class template Dune::XT::LA::IstlRowMajorSparseMatrix

template<class ScalarImp>
class Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>

A sparse matrix implementation of the MatrixInterface using the Dune::BCRSMatrix from dune-istl.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::static_id

template<class ScalarImp>
static std::string Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::static_id()

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::operator=

template<class ScalarImp>
ThisType &Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::operator=(const ThisType &other)

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::operator=

template<class ScalarImp>
ThisType &Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::operator=(const BackendType &other)

Note

Does a deep copy.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::backend

template<class ScalarImp>
BackendType &Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::backend()

\ {

Required by the ProvidesBackend interface.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::backend

template<class ScalarImp>
const BackendType &Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::backend() const

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::copy

template<class ScalarImp>
ThisType Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::copy() const

\ }

Required by ContainerInterface.

\ {

Method Dune::XT::LA::IstlRowMajorSparseMatrix::scal

template<class ScalarImp>
void Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::scal(const ScalarType &alpha)

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::axpy

template<class ScalarImp>
void Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::axpy(const ScalarType &alpha, const ThisType &xx)

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::has_equal_shape

template<class ScalarImp>
bool Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::has_equal_shape(const ThisType &other) const

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::rows

template<class ScalarImp>
inline int Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::rows() const

Method Dune::XT::LA::IstlRowMajorSparseMatrix::cols

template<class ScalarImp>
inline int Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::cols() const

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::mv

template<class ScalarImp>
inline void Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::mv(const IstlDenseVector<ScalarType> &xx, IstlDenseVector<ScalarType> &yy) const

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::mtv

template<class ScalarImp>
inline void Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::mtv(const IstlDenseVector<ScalarType> &xx, IstlDenseVector<ScalarType> &yy) const

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::add_to_entry

template<class ScalarImp>
void Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::add_to_entry(const int ii, const int jj, const ScalarType &value)

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::set_entry

template<class ScalarImp>
void Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::set_entry(const int ii, const int jj, const ScalarType &value)

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::get_entry

template<class ScalarImp>
ScalarType Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::get_entry(const int ii, const int jj) const

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::clear_row

template<class ScalarImp>
void Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::clear_row(const int ii)

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::clear_col

template<class ScalarImp>
void Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::clear_col(const int jj)

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::unit_row

template<class ScalarImp>
void Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::unit_row(const int ii)

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::unit_col

template<class ScalarImp>
void Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::unit_col(const int jj)

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::valid

template<class ScalarImp>
bool Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::valid() const

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::non_zeros

template<class ScalarImp>
int Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::non_zeros() const final

Warning

Use and interprete with care, since the Dune::BCRSMatrix is known to report strange things here, depending on its state!

Method Dune::XT::LA::IstlRowMajorSparseMatrix::pattern

template<class ScalarImp>
SparsityPatternDefault Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::pattern(const bool prune = false, const int eps) const final

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::pruned

template<class ScalarImp>
ThisType Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::pruned(const int eps) const final

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::build_sparse_matrix

template<class ScalarImp>
void Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::build_sparse_matrix(const int rr, const int cc, const SparsityPatternDefault &patt)

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::pruned_pattern_from_backend

template<class ScalarImp>
SparsityPatternDefault Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::pruned_pattern_from_backend(const BackendType &mat, const int eps) const

No documentation provided.

Method Dune::XT::LA::IstlRowMajorSparseMatrix::these_are_valid_indices

template<class ScalarImp>
bool Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::these_are_valid_indices(const int ii, const int jj) const

No documentation provided.

Constructor Dune::XT::LA::IstlRowMajorSparseMatrix::IstlRowMajorSparseMatrix<ScalarImp>

template<>
template<class ScalarImp>
Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::IstlRowMajorSparseMatrix<ScalarImp>(const int rr, const int cc, const SparsityPatternDefault &patt, const int num_mutexes = 1)

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

Constructor Dune::XT::LA::IstlRowMajorSparseMatrix::IstlRowMajorSparseMatrix<ScalarImp>

template<>
template<class ScalarImp>
explicit Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::IstlRowMajorSparseMatrix<ScalarImp>(const int rr = 0, const int cc = 0, const int num_mutexes = 1)

No documentation provided.

Constructor Dune::XT::LA::IstlRowMajorSparseMatrix::IstlRowMajorSparseMatrix<ScalarImp>

template<>
template<class ScalarImp>
Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::IstlRowMajorSparseMatrix<ScalarImp>(const ThisType &other)

No documentation provided.

Constructor Dune::XT::LA::IstlRowMajorSparseMatrix::IstlRowMajorSparseMatrix<ScalarImp>

template<>
template<class ScalarImp>
explicit Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::IstlRowMajorSparseMatrix<ScalarImp>(const BackendType &mat, const bool prune = false, const int eps, const int num_mutexes = 1)

No documentation provided.

Constructor Dune::XT::LA::IstlRowMajorSparseMatrix::IstlRowMajorSparseMatrix<ScalarImp>

template<>
template<class ScalarImp>
explicit Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::IstlRowMajorSparseMatrix<ScalarImp>(BackendType *backend_ptr, const int num_mutexes = 1)

Note

Takes ownership of backend_ptr in the sense that you must not delete it afterwards!

Constructor Dune::XT::LA::IstlRowMajorSparseMatrix::IstlRowMajorSparseMatrix<ScalarImp>

template<>
template<class ScalarImp>
explicit Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::IstlRowMajorSparseMatrix<ScalarImp>(std::shared_ptr<BackendType> backend_ptr, const int num_mutexes = 1)

No documentation provided.

Field Dune::XT::LA::IstlRowMajorSparseMatrix::backend_

std::shared_ptr<BackendType> Dune::XT::LA::IstlRowMajorSparseMatrix::backend_

No documentation provided.

Field Dune::XT::LA::IstlRowMajorSparseMatrix::mutexes_

int Dune::XT::LA::IstlRowMajorSparseMatrix::mutexes_

No documentation provided.

Type alias Dune::XT::LA::IstlRowMajorSparseMatrix::ThisType

type Dune::XT::LA::IstlRowMajorSparseMatrix::ThisType

No documentation provided.

Type alias Dune::XT::LA::IstlRowMajorSparseMatrix::InterfaceType

type Dune::XT::LA::IstlRowMajorSparseMatrix::InterfaceType

No documentation provided.

Type alias Dune::XT::LA::IstlRowMajorSparseMatrix::Traits

type Dune::XT::LA::IstlRowMajorSparseMatrix::Traits

No documentation provided.

Type alias Dune::XT::LA::IstlRowMajorSparseMatrix::MutexesType

type Dune::XT::LA::IstlRowMajorSparseMatrix::MutexesType

No documentation provided.

Function template Dune::XT::LA::IstlRowMajorSparseMatrix::IstlRowMajorSparseMatrix<ScalarImp>

template<class ScalarImp>
template<class OtherMatrixType>
explicit Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::IstlRowMajorSparseMatrix<ScalarImp>(const OtherMatrixType &mat, const int prune = false, const int eps, const int num_mutexes = 1)

No documentation provided.

Function template Dune::XT::LA::IstlRowMajorSparseMatrix::mv

template<class ScalarImp>
template<class V1, class V2>
inline int Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::mv(const V1 &xx, V2 &yy) const

No documentation provided.

Function template Dune::XT::LA::IstlRowMajorSparseMatrix::mtv

template<class ScalarImp>
template<class V1, class V2>
inline int Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::mtv(const V1 &xx, V2 &yy) const

No documentation provided.

Function template Dune::XT::LA::IstlRowMajorSparseMatrix::pruned_pattern

template<class ScalarImp>
template<class OtherMatrixType>
int Dune::XT::LA::IstlRowMajorSparseMatrix<ScalarImp>::pruned_pattern(const OtherMatrixType &mat, const int eps) const

No documentation provided.