Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
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
amdis
amdis-core
Merge requests
!173
use std::apply instead of Dune backport
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
use std::apply instead of Dune backport
feature/std_apply
into
master
Overview
0
Commits
1
Changes
1
Merged
Praetorius, Simon
requested to merge
feature/std_apply
into
master
4 years ago
Overview
0
Commits
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
707a4892
1 commit,
4 years ago
1 file
+
4
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
amdis/operations/Composer.impl.hpp
+
4
−
3
Options
#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
);
Loading