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
Martin Reinecke
ducc
Commits
fef9fcc2
Commit
fef9fcc2
authored
Jun 30, 2020
by
Martin Reinecke
Browse files
some documentation
parent
ab657a9b
Pipeline
#77565
passed with stages
in 13 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/ducc0/math/horner_kernel.h
View file @
fef9fcc2
...
...
@@ -34,7 +34,13 @@ namespace detail_horner_kernel {
using
namespace
std
;
constexpr
double
pi
=
3.141592653589793238462643383279502884197
;
/*! Class providing fast piecewise polynomial approximation of a function which
is defined on the interval [-1;1]
W is the number of equal-length intervals into which [-1;1] is subdivided.
D is the degree of the approximating polynomials.
T is the type at which the approximation is calculated;
should be float or double. */
template
<
size_t
W
,
size_t
D
,
typename
T
>
class
HornerKernel
{
private:
...
...
@@ -98,6 +104,10 @@ template<size_t W, size_t D, typename T> class HornerKernel
}
}
/*! Returns the function approximation at W different locations with the
abscissas x, x+2./W, x+4./W, ..., x+(2.*W-2)/W.
x must lie in [-1; -1+2./W]. */
const
array
<
T
,
W
>
&
DUCC0_NOINLINE
eval
(
T
x
)
{
x
=
(
x
+
1
)
*
W
-
1
;
...
...
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