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

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

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

Method Dune::XT::LA::CommonSparseMatrix::operator=

template<class ScalarImp, Common::StorageLayout layout>
ThisType &Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::operator=(const ThisType &other)

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::clear

template<class ScalarImp, Common::StorageLayout layout>
void Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::clear()

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::copy

template<class ScalarImp, Common::StorageLayout layout>
inline ThisType Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::copy() const

\ {

Required by ContainerInterface.

Method Dune::XT::LA::CommonSparseMatrix::scal

template<class ScalarImp, Common::StorageLayout layout>
inline void Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::scal(const ScalarType &alpha)

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::axpy

template<class ScalarImp, Common::StorageLayout layout>
inline void Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::axpy(const ScalarType &alpha, const ThisType &xx)

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::has_equal_shape

template<class ScalarImp, Common::StorageLayout layout>
inline bool Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::has_equal_shape(const ThisType &other) const

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::rows

template<class ScalarImp, Common::StorageLayout layout>
inline int Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::rows() const

Method Dune::XT::LA::CommonSparseMatrix::cols

template<class ScalarImp, Common::StorageLayout layout>
inline int Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::cols() const

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::add_to_entry

template<class ScalarImp, Common::StorageLayout layout>
inline void Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::add_to_entry(const int rr, const int cc, const ScalarType &value)

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::get_entry

template<class ScalarImp, Common::StorageLayout layout>
inline ScalarType Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::get_entry(const int rr, const int cc) const

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::set_entry

template<class ScalarImp, Common::StorageLayout layout>
inline void Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::set_entry(const int rr, const int cc, const ScalarType value)

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::start_row

template<class ScalarImp, Common::StorageLayout layout>
inline void Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::start_row()

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::end_row

template<class ScalarImp, Common::StorageLayout layout>
inline void Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::end_row()

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::push_entry

template<class ScalarImp, Common::StorageLayout layout>
inline void Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::push_entry(const int cc, const ScalarType value)

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::clear_row

template<class ScalarImp, Common::StorageLayout layout>
inline void Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::clear_row(const int rr)

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::clear_col

template<class ScalarImp, Common::StorageLayout layout>
inline void Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::clear_col(const int cc)

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::unit_row

template<class ScalarImp, Common::StorageLayout layout>
inline void Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::unit_row(const int rr)

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::unit_col

template<class ScalarImp, Common::StorageLayout layout>
inline void Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::unit_col(const int cc)

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::valid

template<class ScalarImp, Common::StorageLayout layout>
bool Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::valid() const

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::non_zeros

template<class ScalarImp, Common::StorageLayout layout>
int Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::non_zeros() const final

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::pattern

template<class ScalarImp, Common::StorageLayout layout>
SparsityPatternDefault Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::pattern(const bool prune = false, const EpsType eps) const override

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::entries

template<class ScalarImp, Common::StorageLayout layout>
ScalarType *Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::entries()

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::entries

template<class ScalarImp, Common::StorageLayout layout>
const ScalarType *Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::entries() const

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::outer_index_ptr

template<class ScalarImp, Common::StorageLayout layout>
int *Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::outer_index_ptr()

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::outer_index_ptr

template<class ScalarImp, Common::StorageLayout layout>
const int *Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::outer_index_ptr() const

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::inner_index_ptr

template<class ScalarImp, Common::StorageLayout layout>
int *Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::inner_index_ptr()

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::inner_index_ptr

template<class ScalarImp, Common::StorageLayout layout>
const int *Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::inner_index_ptr() const

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::eps

template<class ScalarImp, Common::StorageLayout layout>
const EpsType &Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::eps()

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::get_entry_index

template<class ScalarImp, Common::StorageLayout layout>
int Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::get_entry_index(const int rr, const int cc, const bool throw_if_not_in_pattern = true) const

No documentation provided.

Method Dune::XT::LA::CommonSparseMatrix::is_zero

template<class ScalarImp, Common::StorageLayout layout>
bool Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::is_zero(const ScalarType val, const ScalarType eps) const

No documentation provided.

Constructor Dune::XT::LA::CommonSparseMatrix::CommonSparseMatrix<ScalarImp, layout>

template<>
template<class ScalarImp, Common::StorageLayout layout>
Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::CommonSparseMatrix<ScalarImp, layout>(const int rr, const int cc, const SparsityPatternDefault &patt, const int num_mutexes = 1, const EpsType eps)

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

Constructor Dune::XT::LA::CommonSparseMatrix::CommonSparseMatrix<ScalarImp, layout>

template<>
template<class ScalarImp, Common::StorageLayout layout>
explicit Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::CommonSparseMatrix<ScalarImp, layout>(const int rr = 0, const int cc = 0, const ScalarType &value = ScalarType(0), const int num_mutexes = 1, const EpsType eps)

No documentation provided.

Constructor Dune::XT::LA::CommonSparseMatrix::CommonSparseMatrix<ScalarImp, layout>

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

No documentation provided.

Field Dune::XT::LA::CommonSparseMatrix::num_cols_

int Dune::XT::LA::CommonSparseMatrix::num_cols_

No documentation provided.

Field Dune::XT::LA::CommonSparseMatrix::num_rows_

int Dune::XT::LA::CommonSparseMatrix::num_rows_

No documentation provided.

Field Dune::XT::LA::CommonSparseMatrix::entries_

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

No documentation provided.

Field Dune::XT::LA::CommonSparseMatrix::row_pointers_

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

No documentation provided.

Field Dune::XT::LA::CommonSparseMatrix::column_indices_

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

No documentation provided.

Field Dune::XT::LA::CommonSparseMatrix::mutexes_

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

No documentation provided.

Field Dune::XT::LA::CommonSparseMatrix::eps_

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

No documentation provided.

Type alias Dune::XT::LA::CommonSparseMatrix::ThisType

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

No documentation provided.

Type alias Dune::XT::LA::CommonSparseMatrix::InterfaceType

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

No documentation provided.

Type alias Dune::XT::LA::CommonSparseMatrix::EntriesVectorType

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

No documentation provided.

Type alias Dune::XT::LA::CommonSparseMatrix::EpsType

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

No documentation provided.

Type alias Dune::XT::LA::CommonSparseMatrix::IndexVectorType

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

No documentation provided.

Type alias Dune::XT::LA::CommonSparseMatrix::MutexesType

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

No documentation provided.

Function template Dune::XT::LA::CommonSparseMatrix::CommonSparseMatrix<ScalarImp, layout>

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

No documentation provided.

Function template Dune::XT::LA::CommonSparseMatrix::CommonSparseMatrix<ScalarImp, layout>

template<class ScalarImp, Common::StorageLayout layout>
template<class OtherMatrixType>
explicit Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::CommonSparseMatrix<ScalarImp, layout>(const OtherMatrixType &mat, const typename std::enable_if<Common::MatrixAbstraction<OtherMatrixType>::is_matrix, bool>::type prune, const int num_mutexes)

No documentation provided.

Function template Dune::XT::LA::CommonSparseMatrix::copy_to_densematrix

template<class ScalarImp, Common::StorageLayout layout>
template<class DenseMatrixImp>
void Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::copy_to_densematrix(DenseMatrixImp &ret) const

No documentation provided.

Function template Dune::XT::LA::CommonSparseMatrix::assign

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

No documentation provided.

Function template Dune::XT::LA::CommonSparseMatrix::operator=

template<class ScalarImp, Common::StorageLayout layout>
template<class OtherMatrixImp>
int &Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::operator=(const OtherMatrixImp &other)

No documentation provided.

Function template Dune::XT::LA::CommonSparseMatrix::mv

template<class ScalarImp, Common::StorageLayout layout>
template<class XX, class YY>
inline int Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::mv(const XX &xx, YY &yy) const

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

Function template Dune::XT::LA::CommonSparseMatrix::mtv

template<class ScalarImp, Common::StorageLayout layout>
template<class XX, class YY>
inline int Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::mtv(const XX &xx, YY &yy) const

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

Function template Dune::XT::LA::CommonSparseMatrix::rightmultiply

template<class ScalarImp, Common::StorageLayout layout>
template<class MatrixType>
void Dune::XT::LA::CommonSparseMatrix<ScalarImp, layout>::rightmultiply(const MatrixType &other)

\ }