carl  24.04
Computer ARithmetic Library
Functions.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "ContextPolynomial.h"
4 
5 namespace carl {
6 
7 template<typename Coeff, typename Ordering, typename Policies>
8 inline auto irreducible_factors(const ContextPolynomial<Coeff, Ordering, Policies>& p, bool constants = true) {
9  std::vector<ContextPolynomial<Coeff, Ordering, Policies>> res;
11  res.emplace_back(p.context(), f);
12  }
13  return res;
14 }
15 
16 template<typename Coeff, typename Ordering, typename Policies>
19 }
20 
21 template<typename Coeff, typename Ordering, typename Policies>
23  assert(p.context() == q.context());
25 }
26 
27 }
carl is the main namespace for the library.
auto irreducible_factors(const ContextPolynomial< Coeff, Ordering, Policies > &p, bool constants=true)
Definition: Functions.h:8
auto discriminant(const ContextPolynomial< Coeff, Ordering, Policies > &p)
Definition: Functions.h:17
auto resultant(const ContextPolynomial< Coeff, Ordering, Policies > &p, const ContextPolynomial< Coeff, Ordering, Policies > &q)
Definition: Functions.h:22
The general-purpose multivariate polynomial class.
const UnivariatePolynomial< MultivariatePolynomial< Coeff, Ordering, Policies > > & content() const
const Context & context() const