Class template Dune::XT::LA::CommonSparseVector<ScalarImp>

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

A sparse vector implementation of VectorInterface

Method Dune::XT::LA::CommonSparseVector::operator=

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

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::deep_copy

template<class ScalarImp>
void Dune::XT::LA::CommonSparseVector<ScalarImp>::deep_copy(const ThisType &other)

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::operator=

template<class ScalarImp>
ThisType &Dune::XT::LA::CommonSparseVector<ScalarImp>::operator=(const ScalarType &value)

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::copy

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

\ {

Required by ContainerInterface.

Method Dune::XT::LA::CommonSparseVector::scal

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

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::axpy

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

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::has_equal_shape

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

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::size

template<class ScalarImp>
inline size_t Dune::XT::LA::CommonSparseVector<ScalarImp>::size() const

\ }

Required by VectorInterface.

\ {

Method Dune::XT::LA::CommonSparseVector::resize

template<class ScalarImp>
inline void Dune::XT::LA::CommonSparseVector<ScalarImp>::resize(const size_t new_size)

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::add_to_entry

template<class ScalarImp>
void Dune::XT::LA::CommonSparseVector<ScalarImp>::add_to_entry(const size_t ii, const ScalarType &value)

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::set_entry

template<class ScalarImp>
void Dune::XT::LA::CommonSparseVector<ScalarImp>::set_entry(const size_t ii, const ScalarType &value)

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::set_new_entry

template<class ScalarImp>
void Dune::XT::LA::CommonSparseVector<ScalarImp>::set_new_entry(const size_t ii, const ScalarType &value, bool front = false)

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::get_entry

template<class ScalarImp>
ScalarType Dune::XT::LA::CommonSparseVector<ScalarImp>::get_entry(const size_t ii) const

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::get_unchecked_ref

template<class ScalarImp>
inline ScalarType &Dune::XT::LA::CommonSparseVector<ScalarImp>::get_unchecked_ref(const size_t ii)

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::get_unchecked_ref

template<class ScalarImp>
inline const ScalarType &Dune::XT::LA::CommonSparseVector<ScalarImp>::get_unchecked_ref(const size_t ii) const

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::operator[]

template<class ScalarImp>
inline ScalarType &Dune::XT::LA::CommonSparseVector<ScalarImp>::operator[](const size_t ii)

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::operator[]

template<class ScalarImp>
inline const ScalarType &Dune::XT::LA::CommonSparseVector<ScalarImp>::operator[](const size_t ii) const

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::entries

template<class ScalarImp>
EntriesVectorType &Dune::XT::LA::CommonSparseVector<ScalarImp>::entries()

\ }

Method Dune::XT::LA::CommonSparseVector::entries

template<class ScalarImp>
const EntriesVectorType &Dune::XT::LA::CommonSparseVector<ScalarImp>::entries() const

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::indices

template<class ScalarImp>
IndicesVectorType &Dune::XT::LA::CommonSparseVector<ScalarImp>::indices()

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::indices

template<class ScalarImp>
const IndicesVectorType &Dune::XT::LA::CommonSparseVector<ScalarImp>::indices() const

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::clear

template<class ScalarImp>
void Dune::XT::LA::CommonSparseVector<ScalarImp>::clear()

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::dot

template<class ScalarImp>
ScalarType Dune::XT::LA::CommonSparseVector<ScalarImp>::dot(const ThisType &other) const final

\ {

These methods override default implementations from VectorInterface.

Method Dune::XT::LA::CommonSparseVector::l1_norm

template<class ScalarImp>
RealType Dune::XT::LA::CommonSparseVector<ScalarImp>::l1_norm() const final

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::l2_norm

template<class ScalarImp>
RealType Dune::XT::LA::CommonSparseVector<ScalarImp>::l2_norm() const final

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::sup_norm

template<class ScalarImp>
RealType Dune::XT::LA::CommonSparseVector<ScalarImp>::sup_norm() const final

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::add

template<class ScalarImp>
ThisType Dune::XT::LA::CommonSparseVector<ScalarImp>::add(const ThisType &other) const final

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::add

template<class ScalarImp>
void Dune::XT::LA::CommonSparseVector<ScalarImp>::add(const ThisType &other, ThisType &result) const final

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::sub

template<class ScalarImp>
ThisType Dune::XT::LA::CommonSparseVector<ScalarImp>::sub(const ThisType &other) const final

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::sub

template<class ScalarImp>
void Dune::XT::LA::CommonSparseVector<ScalarImp>::sub(const ThisType &other, ThisType &result) const final

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::iadd

template<class ScalarImp>
void Dune::XT::LA::CommonSparseVector<ScalarImp>::iadd(const ThisType &other) final

No documentation provided.

Method Dune::XT::LA::CommonSparseVector::isub

template<class ScalarImp>
void Dune::XT::LA::CommonSparseVector<ScalarImp>::isub(const ThisType &other) final

No documentation provided.

Constructor Dune::XT::LA::CommonSparseVector::CommonSparseVector

template<class ScalarImp>
explicit Dune::XT::LA::CommonSparseVector<ScalarImp>::CommonSparseVector(const size_t sz = 0, const size_t num_mutexes = 1)

No documentation provided.

Constructor Dune::XT::LA::CommonSparseVector::CommonSparseVector

template<class ScalarImp>
explicit Dune::XT::LA::CommonSparseVector<ScalarImp>::CommonSparseVector(const size_t sz, const ScalarType value, const size_t num_mutexes = 1)

No documentation provided.

Constructor Dune::XT::LA::CommonSparseVector::CommonSparseVector

template<class ScalarImp>
explicit Dune::XT::LA::CommonSparseVector<ScalarImp>::CommonSparseVector(const std::vector<ScalarType> &other, const size_t num_mutexes = 1)

No documentation provided.

Constructor Dune::XT::LA::CommonSparseVector::CommonSparseVector

template<class ScalarImp>
explicit Dune::XT::LA::CommonSparseVector<ScalarImp>::CommonSparseVector(const std::initializer_list<ScalarType> &other, const size_t num_mutexes = 1)

No documentation provided.

Constructor Dune::XT::LA::CommonSparseVector::CommonSparseVector

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

No documentation provided.

Field Dune::XT::LA::CommonSparseVector::size_

template<class ScalarImp>
size_t Dune::XT::LA::CommonSparseVector<ScalarImp>::size_

No documentation provided.

Field Dune::XT::LA::CommonSparseVector::entries_

template<class ScalarImp>
std::shared_ptr<EntriesVectorType> Dune::XT::LA::CommonSparseVector<ScalarImp>::entries_

No documentation provided.

Field Dune::XT::LA::CommonSparseVector::indices_

template<class ScalarImp>
std::shared_ptr<IndicesVectorType> Dune::XT::LA::CommonSparseVector<ScalarImp>::indices_

No documentation provided.

Field Dune::XT::LA::CommonSparseVector::mutexes_

template<class ScalarImp>
std::unique_ptr<MutexesType> Dune::XT::LA::CommonSparseVector<ScalarImp>::mutexes_

No documentation provided.

Type alias Dune::XT::LA::CommonSparseVector::ThisType

template<class ScalarImp>
using Dune::XT::LA::CommonSparseVector<ScalarImp>::ThisType = CommonSparseVector<ScalarImp>

No documentation provided.

Type alias Dune::XT::LA::CommonSparseVector::InterfaceType

template<class ScalarImp>
using Dune::XT::LA::CommonSparseVector<ScalarImp>::InterfaceType = VectorInterface<internal::CommonSparseVectorTraits<ScalarImp>, ScalarImp>

No documentation provided.

Type alias Dune::XT::LA::CommonSparseVector::IndicesVectorType

template<class ScalarImp>
using Dune::XT::LA::CommonSparseVector<ScalarImp>::IndicesVectorType = typename Traits::IndicesVectorType

No documentation provided.

Type alias Dune::XT::LA::CommonSparseVector::EntriesVectorType

template<class ScalarImp>
using Dune::XT::LA::CommonSparseVector<ScalarImp>::EntriesVectorType = typename Traits::EntriesVectorType

No documentation provided.

Type alias Dune::XT::LA::CommonSparseVector::derived_type

template<class ScalarImp>
using Dune::XT::LA::CommonSparseVector<ScalarImp>::derived_type = typename Traits::derived_type

No documentation provided.

Type alias Dune::XT::LA::CommonSparseVector::MutexesType

template<class ScalarImp>
using Dune::XT::LA::CommonSparseVector<ScalarImp>::MutexesType = typename Traits::MutexesType

No documentation provided.

Function template Dune::XT::LA::CommonSparseVector::CommonSparseVector

template<class ScalarImp>
template<class VectorType>
explicit Dune::XT::LA::CommonSparseVector<ScalarImp>::CommonSparseVector(const typename std::enable_if_t<XT::Common::VectorAbstraction<VectorType>::is_vector, size_t> sz, const VectorType &entries, const IndicesVectorType &indices, const size_t num_mutexes = 1)

No documentation provided.

Function template Dune::XT::LA::CommonSparseVector::CommonSparseVector

template<class ScalarImp>
template<class OtherVectorType>
explicit Dune::XT::LA::CommonSparseVector<ScalarImp>::CommonSparseVector(const OtherVectorType &other, const typename std::enable_if_t<XT::Common::VectorAbstraction<OtherVectorType>::is_vector, bool> prune = true, const ScalarType eps = Common::FloatCmp::DefaultEpsilon<ScalarType>::value(), const size_t num_mutexes = 1)

No documentation provided.

Function template Dune::XT::LA::CommonSparseVector::CommonSparseVector

template<class ScalarImp>
template<class OtherVectorType>
explicit Dune::XT::LA::CommonSparseVector<ScalarImp>::CommonSparseVector(const OtherVectorType &other, const typename std::enable_if_t<XT::Common::VectorAbstraction<OtherVectorType>::is_vector, bool> prune, const size_t num_mutexes)

No documentation provided.

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

template<class ScalarImp>
template<int size>
ThisType &Dune::XT::LA::CommonSparseVector<ScalarImp>::operator=(const Dune::FieldVector<ScalarType, size> &other)

No documentation provided.