carl  24.04
Computer ARithmetic Library
MultivariatePolynomialPolicy.h
Go to the documentation of this file.
1 /**
2  * @file MultivariatePolynomialPolicy.h
3  * @ingroup multirp
4  * @author Sebastian Junges
5  */
6 
7 #pragma once
8 
9 #include "MonomialOrdering.h"
12 
13 namespace carl
14 {
15  /**
16  * The default policy for polynomials.
17  * @ingroup multirp
18  */
19  template<typename ReasonsAdaptor = NoReasons, typename Allocator = NoAllocator>
20  struct StdMultivariatePolynomialPolicies : public ReasonsAdaptor
21  {
22 
23 
24  /**
25  * Linear searching means that we search linearly for a term instead of applying e.g. binary search.
26  * Although the worst-case complexity is worse, for polynomials with a small nr of terms, this should be better.
27  */
28  static const bool searchLinear = true;
29 
30  // Easy access.
31  static const bool has_reasons = ReasonsAdaptor::has_reasons;
32  };
33 
34 }
carl is the main namespace for the library.
static const bool searchLinear
Linear searching means that we search linearly for a term instead of applying e.g.