Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
8f4ca7e1
Commit
8f4ca7e1
authored
Jan 25, 2016
by
Quentin Khan
Browse files
Fix: change FConstFuncs.hpp:Feq return type to bool
parent
4dec09ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/Utils/FConstFuncs.hpp
View file @
8f4ca7e1
...
...
@@ -12,7 +12,7 @@ constexpr T Fpow(T a, std::size_t p) {
template
<
typename
T
,
typename
U
,
typename
std
::
enable_if
<
std
::
is_arithmetic
<
T
>
::
value
,
T
>::
type
*
=
nullptr
,
typename
std
::
enable_if
<
std
::
is_arithmetic
<
U
>::
value
,
U
>::
type
*
=
nullptr
>
constexpr
T
Ffeq
(
T
a
,
U
b
,
T
epsilon
=
1e-7
)
{
constexpr
bool
Ffeq
(
T
a
,
U
b
,
T
epsilon
=
1e-7
)
{
return
a
-
b
<
epsilon
&&
b
-
a
<
epsilon
;
}
...
...
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