8#ifndef KERNEL_LAFEM_ARCH_UNIT_FILTER_BLOCK_VEC_HPP
9#error "Do not include this implementation-only header file directly!"
12#include <kernel/util/math.hpp>
14namespace FEAT::LAFEM::Arch
16 template <
typename DT_,
typename IT_>
17 void UnitFilterBlockVec::exec_generic_impl(DT_ * v,
const DT_ *
const f_val,
const IT_ *
const f_idx,
const Index f_nzes,
const bool zero,
const bool ign_nans,
const int block_size)
19 FEAT_PRAGMA_OMP(parallel
for)
20 for(
Index i = 0; i < f_nzes; ++i)
22 for(
int j = 0 ; j < block_size ; ++j)
31 v[
Index(block_size) * f_idx[i] +
Index(j)] = zero ? DT_(0) : f_val[k];
bool isnan(T_ x)
Checks whether a value is Not-A-Number.
std::uint64_t Index
Index data type.