FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
unit_filter_mkl.cpp
1// FEAT3: Finite Element Analysis Toolbox, Version 3
2// Copyright (C) 2010 by Stefan Turek & the FEAT group
3// FEAT3 is released under the GNU General Public License version 3,
4// see the file 'copyright.txt' in the top level directory for details.
5
6// includes, FEAT
8#include <kernel/lafem/arch/unit_filter.hpp>
9
10#include <cstring>
11
12FEAT_DISABLE_WARNINGS
13#include <mkl.h>
14#include <mkl_spblas.h>
15FEAT_RESTORE_WARNINGS
16
17using namespace FEAT;
18using namespace FEAT::LAFEM;
19using namespace FEAT::LAFEM::Arch;
20
21void UnitFilter::filter_rhs_mkl(float * v, const float * const sv_elements, const std::uint64_t * const sv_indices, const Index ue)
22{
23 cblas_ssctr((MKL_INT)ue, sv_elements, (const MKL_INT*)sv_indices, v);
24}
25
26void UnitFilter::filter_rhs_mkl(double * v, const double * const sv_elements, const std::uint64_t * const sv_indices, const Index ue)
27{
28 cblas_dsctr((MKL_INT)ue, sv_elements, (const MKL_INT*)sv_indices, v);
29}
FEAT Kernel base header.
LAFEM namespace.
Definition: apply.hpp:22
FEAT namespace.
Definition: adjactor.hpp:12
std::uint64_t Index
Index data type.