Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backofen, Rainer
amdis
Commits
0b25b49d
Commit
0b25b49d
authored
Jan 07, 2016
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
functor expression corrected
parent
79865e8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
AMDiS/src/expressions/functorN_expr.hpp
AMDiS/src/expressions/functorN_expr.hpp
+11
-11
No files found.
AMDiS/src/expressions/functorN_expr.hpp
View file @
0b25b49d
...
...
@@ -250,7 +250,7 @@ namespace AMDiS
F
f
;
///< the functor
template
<
class
...
Terms_
>
FunctionN
(
F
&
&
f_
,
Terms_
...
terms_
)
FunctionN
(
F
const
&
f_
,
Terms_
...
terms_
)
:
super
(
terms_
...),
f
(
f_
)
{}
// call f.getDegree() function
...
...
@@ -404,27 +404,27 @@ namespace AMDiS
template
<
typename
F
,
typename
...
Terms
>
inline
typename
result_of
::
FunctionN
<
F
,
Terms
...
>::
type
function_
(
F
&
&
f
,
Terms
...
ts
)
function_
(
F
const
&
f
,
Terms
...
ts
)
{
return
expressions
::
FunctionN
<
F
,
typename
traits
::
to_expr
<
Terms
>::
to
::
type
...
>
(
std
::
forward
<
F
>
(
f
)
,
traits
::
to_expr
<
Terms
>::
to
::
get
(
ts
)...);
(
f
,
traits
::
to_expr
<
Terms
>::
to
::
get
(
ts
)...);
}
template
<
typename
F
,
typename
...
Terms
>
inline
typename
result_of
::
FunctionN
<
F
,
Terms
...
>::
type
func
(
F
&
&
f
,
Terms
...
ts
)
func
(
F
const
&
f
,
Terms
...
ts
)
{
return
expressions
::
FunctionN
<
F
,
typename
traits
::
to_expr
<
Terms
>::
to
::
type
...
>
(
std
::
forward
<
F
>
(
f
)
,
traits
::
to_expr
<
Terms
>::
to
::
get
(
ts
)...);
(
f
,
traits
::
to_expr
<
Terms
>::
to
::
get
(
ts
)...);
}
template
<
typename
F
,
typename
Term0
,
typename
...
Terms
>
inline
typename
result_of
::
FunctionN
<
F
,
Term0
,
Terms
...
>::
type
eval
(
F
&
&
f
,
Term0
t0
,
Terms
...
ts
)
eval
(
F
const
&
f
,
Term0
t0
,
Terms
...
ts
)
{
return
expressions
::
FunctionN
<
F
,
typename
traits
::
to_expr
<
Term0
>::
to
::
type
,
typename
traits
::
to_expr
<
Terms
>::
to
::
type
...
>
(
std
::
forward
<
F
>
(
f
)
,
traits
::
to_expr
<
Term0
>::
to
::
get
(
t0
),
traits
::
to_expr
<
Terms
>::
to
::
get
(
ts
)...);
(
f
,
traits
::
to_expr
<
Term0
>::
to
::
get
(
t0
),
traits
::
to_expr
<
Terms
>::
to
::
get
(
ts
)...);
}
...
...
@@ -436,16 +436,16 @@ namespace AMDiS
template
<
int
Degree
,
class
F
>
inline
expressions
::
DegreeWrapper
<
Degree
,
F
>
deg
(
F
&
&
fct
)
deg
(
F
const
&
fct
)
{
return
expressions
::
DegreeWrapper
<
Degree
,
F
>
(
std
::
forward
<
F
>
(
fct
)
)
;
return
expressions
::
DegreeWrapper
<
Degree
,
F
>
(
fct
);
}
template
<
class
F
,
class
DegF
>
inline
expressions
::
DegreeWrapper2
<
F
,
DegF
>
deg
(
F
&
&
fct
,
DegF
&
&
degfct
)
deg
(
F
const
&
fct
,
DegF
const
&
degfct
)
{
return
expressions
::
DegreeWrapper2
<
F
,
DegF
>
(
std
::
forward
<
F
>
(
fct
)
,
std
::
forward
<
DegF
>
(
degfct
)
)
;
return
expressions
::
DegreeWrapper2
<
F
,
DegF
>
(
fct
,
degfct
);
}
}
// end namespace AMDiS
...
...
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