Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Perkins
ducc
Commits
9906f9a2
Commit
9906f9a2
authored
Apr 23, 2020
by
Martin Reinecke
Browse files
add convenience function to compute accuracy from support and oversampling factor
parent
664bad3b
Changes
2
Show whitespace changes
Inline
Side-by-side
pyinterpol_ng/interpol_ng.h
View file @
9906f9a2
...
...
@@ -535,9 +535,13 @@ template<typename T> class Interpolator
}
};
double
epsilon_guess
(
size_t
support
,
double
ofactor
)
{
return
std
::
sqrt
(
12.
)
*
std
::
exp
(
-
(
support
*
ofactor
));
}
}
using
detail_interpol_ng
::
Interpolator
;
using
detail_interpol_ng
::
epsilon_guess
;
}
...
...
pyinterpol_ng/pyinterpol_ng.cc
View file @
9906f9a2
...
...
@@ -256,4 +256,5 @@ PYBIND11_MODULE(pyinterpol_ng, m)
m
.
def
(
"rotate_alm"
,
&
pyrotate_alm
<
fptype
>
,
"alm"
_a
,
"lmax"
_a
,
"psi"
_a
,
"theta"
_a
,
"phi"
_a
);
#endif
m
.
def
(
"epsilon_guess"
,
&
epsilon_guess
,
"support"
_a
,
"ofactor"
_a
);
}
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment