Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ag-ohlberger
dune-community
dune-xt
Commits
27fc54d0
Commit
27fc54d0
authored
6 years ago
by
Tobias Leibner
Browse files
Options
Downloads
Patches
Plain Diff
[lapacke] add MKL vdExp
parent
a0885a07
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/xt/common/lapacke.cc
+16
-2
16 additions, 2 deletions
dune/xt/common/lapacke.cc
dune/xt/common/lapacke.hh
+11
-0
11 additions, 0 deletions
dune/xt/common/lapacke.hh
with
27 additions
and
2 deletions
dune/xt/common/lapacke.cc
+
16
−
2
View file @
27fc54d0
...
@@ -18,8 +18,7 @@
...
@@ -18,8 +18,7 @@
#define lapack_complex_double std::complex<double>
#define lapack_complex_double std::complex<double>
#if HAVE_MKL
#if HAVE_MKL
#include
<mkl_cblas.h>
#include
<mkl.h>
#include
<mkl_lapacke.h>
#else // HAVE_MKL
#else // HAVE_MKL
#if HAVE_LAPACKE
#if HAVE_LAPACKE
#include
<lapacke.h>
#include
<lapacke.h>
...
@@ -38,6 +37,21 @@
...
@@ -38,6 +37,21 @@
namespace
Dune
{
namespace
Dune
{
namespace
XT
{
namespace
XT
{
namespace
Common
{
namespace
Common
{
namespace
Mkl
{
void
exp
(
const
int
n
,
const
double
*
a
,
double
*
y
)
{
#if HAVE_MKL
vdExp
(
n
,
a
,
y
);
#else
for
(
int
ii
=
0
;
ii
<
n
;
++
ii
)
y
[
ii
]
=
std
::
exp
(
a
[
ii
]);
#endif
}
}
// namespace Mkl
namespace
Lapacke
{
namespace
Lapacke
{
...
...
This diff is collapsed.
Click to expand it.
dune/xt/common/lapacke.hh
+
11
−
0
View file @
27fc54d0
...
@@ -17,6 +17,17 @@
...
@@ -17,6 +17,17 @@
namespace
Dune
{
namespace
Dune
{
namespace
XT
{
namespace
XT
{
namespace
Common
{
namespace
Common
{
namespace
Mkl
{
/**
* \brief Wrapper around MKL's vdExp
* \sa vdExp
*/
void
exp
(
const
int
n
,
const
double
*
a
,
double
*
y
);
}
// namespace Mkl
namespace
Lapacke
{
namespace
Lapacke
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment