FEAT
3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
axpy_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
7
#include <
kernel/base_header.hpp
>
8
#include <kernel/lafem/arch/axpy.hpp>
9
10
#include <cstring>
11
12
FEAT_DISABLE_WARNINGS
13
#include <mkl.h>
14
#include <mkl_spblas.h>
15
FEAT_RESTORE_WARNINGS
16
17
using namespace
FEAT
;
18
using namespace
FEAT::LAFEM
;
19
using namespace
FEAT::LAFEM::Arch;
20
21
void
Axpy::value_mkl(
float
* r,
const
float
a,
const
float
*
const
x,
const
Index
size)
22
{
23
cblas_saxpy((MKL_INT)size, a, x, 1, r, 1);
24
}
25
26
void
Axpy::value_mkl(
double
* r,
const
double
a,
const
double
*
const
x,
const
Index
size)
27
{
28
cblas_daxpy((MKL_INT)size, a, x, 1, r, 1);
29
}
base_header.hpp
FEAT Kernel base header.
FEAT::LAFEM
LAFEM namespace.
Definition:
apply.hpp:22
FEAT
FEAT namespace.
Definition:
adjactor.hpp:12
FEAT::Index
std::uint64_t Index
Index data type.
Definition:
base_header.hpp:122
kernel
lafem
arch
axpy_mkl.cpp
Generated by
1.9.5