From f80021dba5f9ec4abe650b50e923a9776adcb365 Mon Sep 17 00:00:00 2001 From: Maximilien Naveau <maximilien.naveau@gmail.com> Date: Tue, 10 Oct 2023 17:18:24 +0200 Subject: [PATCH] generalize the polynomial1d to all singular type float/double/int etc. --- include/ndcurves/polynomial_1d.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ndcurves/polynomial_1d.h b/include/ndcurves/polynomial_1d.h index e4df011..4c2e39d 100644 --- a/include/ndcurves/polynomial_1d.h +++ b/include/ndcurves/polynomial_1d.h @@ -23,10 +23,10 @@ namespace ndcurves { /// where N is the order and \f$ t \in [t_{min}, t_{max}] \f$. /// template <typename Time, typename Numeric, bool Safe> -struct polynomial<Time, Numeric, Safe, double, std::vector<double> > - : public curve_abc<Time, Numeric, Safe, double> { - typedef double point_t; - typedef std::vector<double> t_point_t; +struct polynomial<Time, Numeric, Safe, Numeric, std::vector<Numeric> > + : public curve_abc<Time, Numeric, Safe, Numeric> { + typedef Numeric point_t; + typedef std::vector<Numeric> t_point_t; typedef Time time_t; typedef Numeric num_t; typedef curve_abc<Time, Numeric, Safe, point_t> curve_abc_t; -- GitLab