carl  24.04
Computer ARithmetic Library
Groebner.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../CoCoAAdaptor.h"
4 
5 namespace carl {
6 
7 template<typename C, typename O, typename P>
8 class MultivariatePolynomial;
9 
10 template<typename C, typename O, typename P>
11 std::vector<MultivariatePolynomial<C,O,P>> groebner_basis(const std::vector<MultivariatePolynomial<C,O,P>>& polys) {
12  if (polys.size() <= 1) return polys;
13  CoCoAAdaptor adaptor(polys);
14  return adaptor.GBasis(polys);
15 }
16 
17 }
carl is the main namespace for the library.
std::vector< MultivariatePolynomial< C, O, P > > groebner_basis(const std::vector< MultivariatePolynomial< C, O, P >> &polys)
Definition: Groebner.h:11
The general-purpose multivariate polynomial class.