12 #ifndef BOGUS_POLYNOMIAL_HPP
13 #define BOGUS_POLYNOMIAL_HPP
18 namespace polynomial {
23 StrictlyPositiveRoots,
24 StrictlyNegativeRoots,
28 template<
unsigned Dimension,
typename Scalar >
31 static unsigned getRealRoots(
const Scalar* coeffs,
33 RealRootsFilter filter = AllRoots ) ;
36 template<
unsigned Dimension,
typename Scalar >
39 static unsigned getRealRoots( Scalar* coeffs,
41 RealRootsFilter filter = AllRoots ) ;
50 template<
unsigned Dimension,
typename Scalar >
51 unsigned getRealRoots(
const Scalar (&coeffs)[Dimension],
52 Scalar (&realRoots)[Dimension],
53 RealRootsFilter filter = AllRoots )
64 template<
unsigned Dimension,
typename Scalar >
65 unsigned getRealRoots( Scalar (&coeffs)[Dimension+1],
66 Scalar (&realRoots)[Dimension],
67 RealRootsFilter filter = AllRoots )
69 return PossiblyDegenerateRootsFinder< Dimension, Scalar >::getRealRoots( coeffs, realRoots, filter ) ;
Definition: Polynomial.hpp:29
Definition: Polynomial.hpp:37