Class template Dune::XT::LA::ContainerInterface

Inherits from Dune::XT::Common::CRTPInterface.

template<class Traits, class ScalarImp>
class Dune::XT::LA::ContainerInterface : public Common::CRTPInterface<ContainerInterface<TraitsImp, ScalarImp>, TraitsImp>

CRTP base interface for linear algebra containers, providing copy, scal, axpy and scalar arithmetic.

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

No documentation provided.

ThisType &Dune::XT::LA::ContainerInterface::operator=(ThisType &&other) noexcept

No documentation provided.

inline derived_type Dune::XT::LA::ContainerInterface::copy() const

Creates a (deep) copy of the underlying resource

:returns: A new container

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

BLAS SCAL operation (in-place sclar multiplication).

:param alpha: The scalar coefficient with which each element of the container is multiplied.

inline void Dune::XT::LA::ContainerInterface::axpy(const ScalarType &alpha, const derived_type &xx)

BLAS AXPY operation.

:param alpha: The scalar coefficient with which each element of the container is multiplied :param xx: Container that is to be elementwise added.

inline bool Dune::XT::LA::ContainerInterface::has_equal_shape(const derived_type &other) const

Test for equal sizes.

:param other: Container the sizes of which this is to be compared to.

static std::string Dune::XT::LA::ContainerInterface::type_this()

\ }

Are provided by the interface for convenience!

Note

Those marked as virtual may be implemented more efficiently in a derived class! \ {

virtual derived_type &Dune::XT::LA::ContainerInterface::operator*=(const ScalarType &alpha)

No documentation provided.

virtual derived_type &Dune::XT::LA::ContainerInterface::operator/=(const ScalarType &alpha)

No documentation provided.

virtual derived_type Dune::XT::LA::ContainerInterface::operator*(const ScalarType &alpha) const

Multiplies every component of this by a scalar.

:param alpha: The scalar. :returns: The scaled copy of this.

virtual derived_type Dune::XT::LA::ContainerInterface::operator/(const ScalarType &alpha) const

No documentation provided.

template<>
Dune::XT::LA::ContainerInterface::ContainerInterface<Traits, ScalarImp>() = default

No documentation provided.

template<>
Dune::XT::LA::ContainerInterface::ContainerInterface<Traits, ScalarImp>(const ThisType &other) = default

No documentation provided.

template<>
Dune::XT::LA::ContainerInterface::ContainerInterface<Traits, ScalarImp>(ThisType &&other) noexcept = default

No documentation provided.

template<>
virtual ~ContainerInterface<TraitsImp, ScalarImp>() = default

No documentation provided.

type Dune::XT::LA::ContainerInterface::CRTP

No documentation provided.

type Dune::XT::LA::ContainerInterface::ThisType

No documentation provided.

type Dune::XT::LA::ContainerInterface::ScalarType

No documentation provided.

type Dune::XT::LA::ContainerInterface::field_type

No documentation provided.

type Dune::XT::LA::ContainerInterface::RealType

No documentation provided.