public final class RandomMultivariatePolynomials extends Object
Modifier and Type | Method and Description |
---|---|
static MultivariatePolynomial<BigInteger> |
randomPolynomial(int nVars,
int degree,
int size,
BigInteger bound,
Comparator<DegreeVector> ordering,
org.apache.commons.math3.random.RandomGenerator rnd)
Generates random Z[X] polynomial with coefficients bounded by
bound |
static MultivariatePolynomialZp64 |
randomPolynomial(int nVars,
int degree,
int size,
IntegersZp64 ring,
Comparator<DegreeVector> ordering,
org.apache.commons.math3.random.RandomGenerator rnd)
Generates random Zp[X] polynomial over machine integers
|
static MultivariatePolynomialZp64 |
randomPolynomial(int nVars,
int degree,
int size,
IntegersZp64 ring,
org.apache.commons.math3.random.RandomGenerator rnd)
Generates random Zp[X] polynomial over machine integers
|
static <E> MultivariatePolynomial<E> |
randomPolynomial(int nVars,
int minDegree,
int maxDegree,
int size,
Ring<E> ring,
Comparator<DegreeVector> ordering,
Function<org.apache.commons.math3.random.RandomGenerator,E> method,
org.apache.commons.math3.random.RandomGenerator rnd)
Generates random polynomial
|
static MultivariatePolynomial<BigInteger> |
randomPolynomial(int nVars,
int degree,
int size,
org.apache.commons.math3.random.RandomGenerator rnd)
Generates random Z[X] polynomial
|
static <E> MultivariatePolynomial<E> |
randomPolynomial(int nVars,
int degree,
int size,
Ring<E> ring,
Comparator<DegreeVector> ordering,
Function<org.apache.commons.math3.random.RandomGenerator,E> method,
org.apache.commons.math3.random.RandomGenerator rnd)
Generates random polynomial
|
static <E> MultivariatePolynomial<E> |
randomPolynomial(int nVars,
int degree,
int size,
Ring<E> ring,
Comparator<DegreeVector> ordering,
org.apache.commons.math3.random.RandomGenerator rnd)
Generates random polynomial
|
static <Term extends AMonomial<Term>,Poly extends AMultivariatePolynomial<Term,Poly>> |
randomPolynomial(Poly factory,
int degree,
int size,
org.apache.commons.math3.random.RandomGenerator rnd)
Generates random multivariate polynomial
|
static MultivariatePolynomialZp64 |
randomSharpPolynomial(int nVars,
int degree,
int size,
IntegersZp64 ring,
Comparator<DegreeVector> ordering,
org.apache.commons.math3.random.RandomGenerator rnd)
Generates random Zp[X] polynomial over machine integers
|
static <E> MultivariatePolynomial<E> |
randomSharpPolynomial(int nVars,
int degree,
int size,
Ring<E> ring,
Comparator<DegreeVector> ordering,
Function<org.apache.commons.math3.random.RandomGenerator,E> rndCoefficients,
org.apache.commons.math3.random.RandomGenerator rnd)
Generates random Zp[X] polynomial over machine integers
|
public static MultivariatePolynomial<BigInteger> randomPolynomial(int nVars, int degree, int size, BigInteger bound, Comparator<DegreeVector> ordering, org.apache.commons.math3.random.RandomGenerator rnd)
bound
nVars
- number of variablesdegree
- maximal degree of the resultsize
- number of elements in the resultbound
- coefficient boundordering
- monomial orderrnd
- random sourcepublic static MultivariatePolynomial<BigInteger> randomPolynomial(int nVars, int degree, int size, org.apache.commons.math3.random.RandomGenerator rnd)
nVars
- number of variablesdegree
- maximal degree of the resultsize
- number of elements in the resultrnd
- random sourcepublic static <E> MultivariatePolynomial<E> randomPolynomial(int nVars, int degree, int size, Ring<E> ring, Comparator<DegreeVector> ordering, Function<org.apache.commons.math3.random.RandomGenerator,E> method, org.apache.commons.math3.random.RandomGenerator rnd)
nVars
- number of variablesdegree
- maximal degree of the resultsize
- number of elements in the resultring
- the coefficient ringordering
- monomial ordermethod
- method for generating random coefficientsrnd
- random sourcepublic static <E> MultivariatePolynomial<E> randomPolynomial(int nVars, int minDegree, int maxDegree, int size, Ring<E> ring, Comparator<DegreeVector> ordering, Function<org.apache.commons.math3.random.RandomGenerator,E> method, org.apache.commons.math3.random.RandomGenerator rnd)
nVars
- number of variablesminDegree
- minimal exponentmaxDegree
- maximalexponentsize
- number of elements in the resultring
- the coefficient ringordering
- monomial ordermethod
- method for generating random coefficientsrnd
- random sourcepublic static <E> MultivariatePolynomial<E> randomPolynomial(int nVars, int degree, int size, Ring<E> ring, Comparator<DegreeVector> ordering, org.apache.commons.math3.random.RandomGenerator rnd)
nVars
- number of variablesdegree
- maximal degree of the resultsize
- number of elements in the resultring
- the coefficient ringordering
- monomial orderrnd
- random sourcepublic static MultivariatePolynomialZp64 randomPolynomial(int nVars, int degree, int size, IntegersZp64 ring, org.apache.commons.math3.random.RandomGenerator rnd)
nVars
- number of variablesdegree
- maximal degree of the resultsize
- number of elements in the resultring
- the coefficient ringrnd
- random sourcepublic static MultivariatePolynomialZp64 randomPolynomial(int nVars, int degree, int size, IntegersZp64 ring, Comparator<DegreeVector> ordering, org.apache.commons.math3.random.RandomGenerator rnd)
nVars
- number of variablesdegree
- maximal degree of the resultsize
- number of elements in the resultring
- the coefficient ringordering
- monomial orderrnd
- random sourcepublic static MultivariatePolynomialZp64 randomSharpPolynomial(int nVars, int degree, int size, IntegersZp64 ring, Comparator<DegreeVector> ordering, org.apache.commons.math3.random.RandomGenerator rnd)
nVars
- number of variablesdegree
- maximal degree of the resultsize
- number of elements in the resultring
- the coefficient ringordering
- monomial orderrnd
- random sourcepublic static <E> MultivariatePolynomial<E> randomSharpPolynomial(int nVars, int degree, int size, Ring<E> ring, Comparator<DegreeVector> ordering, Function<org.apache.commons.math3.random.RandomGenerator,E> rndCoefficients, org.apache.commons.math3.random.RandomGenerator rnd)
nVars
- number of variablesdegree
- maximal degree of the resultsize
- number of elements in the resultring
- the coefficient ringordering
- monomial orderrnd
- random sourcepublic static <Term extends AMonomial<Term>,Poly extends AMultivariatePolynomial<Term,Poly>> Poly randomPolynomial(Poly factory, int degree, int size, org.apache.commons.math3.random.RandomGenerator rnd)
factory
- factory polynomialdegree
- maximal degree of the resultsize
- number of elements in the resultrnd
- random sourceCopyright © 2018. All rights reserved.