8#include <kernel/lafem/dense_vector_blocked.hpp>
19 template<
typename DT_,
typename IT_,
int block_size_>
33 template <
typename DT2_ = DT_,
typename IT2_ = IT_,
int block_size2_ = block_size_>
37 template <
typename DataType2_,
typename IndexType2_,
int block_size2_>
119 _vec_prim = std::forward<VectorType>(other._vec_prim);
120 _vec_dual = std::forward<VectorType>(other._vec_dual);
154 template<
typename DT2_,
typename IT2_,
int block_size2_>
298 template<
typename MT_>
#define XASSERTM(expr, msg)
Assertion macro definition with custom message.
virtual void clear()
Free all allocated arrays.
Blocked Dense data vector class template.
IT_ IndexType
Our indextype.
ValueType dot_blocked(const DenseVectorBlocked &x) const
Calculate .
void convert(const DenseVectorBlocked< DT2_, IT2_, block_size_ > &other)
Conversion method.
bool empty() const
Checks whether the vector is empty, i.e. if it has size 0.
DT_ DataType
Our datatype.
void axpy_blocked(const DenseVectorBlocked &x, const ValueType alpha)
Calculate .
DenseVectorBlocked clone(CloneMode clone_mode=CloneMode::Deep) const
Clone operation.
Mean Filter Blocked class template.
virtual ~MeanFilterBlocked()
virtual destructor
MeanFilterBlocked(VectorType &&vec_prim, VectorType &&vec_dual, ValueType sol_mean=ValueType(0))
Constructor.
ValueType _volume
weight volume
void convert(const MeanFilterBlocked< DT2_, IT2_, block_size2_ > &other)
Conversion method.
VectorType::ValueType ValueType
value-type typedef
void filter_rhs(VectorType &vector) const
Applies the filter onto the right-hand-side vector.
void filter_def(VectorType &vector) const
Applies the filter onto a defect vector.
void clear()
Clears this filter.
VectorType::DataType DataType
data-type typedef
MeanFilterBlocked(VectorType &&vec_prim, VectorType &&vec_dual, ValueType sol_mean, ValueType volume)
Constructor.
MeanFilterBlocked clone(CloneMode clone_mode=CloneMode::Deep) const
Creates a clone of itself.
void filter_cor(VectorType &vector) const
Applies the filter onto a correction vector.
MeanFilterBlocked(MeanFilterBlocked &&other)
move ctor
DenseVectorBlocked< DT_, IT_, block_size_ > VectorType
vector-type typedef
void clone(const MeanFilterBlocked &other, CloneMode clone_mode=CloneMode::Deep)
Clones data from another MeanFilterBlocked.
VectorType _vec_prim
primal weighting vector
void filter_mat(MT_ &matrix) const
Applies the filter onto a system matrix.
MeanFilterBlocked & operator=(MeanFilterBlocked &&other)
move-assign operator
void filter_sol(VectorType &vector) const
Applies the filter onto the solution vector.
VectorType _vec_dual
dual weighting vector
VectorType::IndexType IndexType
index-type typedef
ValueType _sol_mean
desired solution vector mean
Tiny Vector class template.
static constexpr int n
the length of the vector
CUDA_HOST_DEVICE DataType norm_euclid_sqr() const
Computes the squared euclid norm of this vector.