Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
707a4892
Commit
707a4892
authored
Apr 14, 2020
by
Praetorius, Simon
Browse files
use std::apply instead of Dune backport
parent
de0b3746
Changes
1
Hide whitespace changes
Inline
Side-by-side
amdis/operations/Composer.impl.hpp
View file @
707a4892
#pragma once
#include <tuple>
#include <utility>
#include <amdis/operations/Composer.hpp>
#include <amdis/operations/Arithmetic.hpp>
#include <amdis/operations/Composer.hpp>
namespace
AMDiS
{
namespace
Operation
{
...
...
@@ -17,7 +18,7 @@ namespace AMDiS { namespace Operation {
// d_i(f)[g...] * d_j(g_i)
auto
term_i
=
[
&
](
auto
const
_i
)
{
auto
di_f
=
Dune
::
S
td
::
apply
([
&
](
auto
const
&
...
gs
)
{
auto
di_f
=
s
td
::
apply
([
&
](
auto
const
&
...
gs
)
{
return
compose
(
partial
(
c
.
f_
,
_i
),
gs
...);
},
c
.
gs_
);
...
...
@@ -26,7 +27,7 @@ namespace AMDiS { namespace Operation {
};
// sum_i [ d_i(f)[g...] * d_j(g_i) ]
return
Dune
::
S
td
::
apply
([
&
](
auto
const
...
_i
)
return
s
td
::
apply
([
&
](
auto
const
...
_i
)
{
return
compose
(
Plus
{},
term_i
(
_i
)...);
},
index_seq
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment