Represent a array of monomials.
More...
#include <monomial-array.h>
Represent a array of monomials.
Definition at line 52 of file monomial-array.h.
F4::MonomialArray::MonomialArray |
( |
int |
nbVariable, |
|
|
int |
capacity |
|
) |
| |
Constructor.
- Parameters
-
nbVariable | Number of variable of the polynomial ring. |
capacity | Initial size of _monomialArray. |
F4::MonomialArray::MonomialArray |
( |
int |
nbVariable, |
|
|
int |
capacity, |
|
|
int |
degree |
|
) |
| |
Constructor.
- Parameters
-
nbVariable | Number of variable of the polynomial ring. |
capacity | Initial size of _monomialArray. |
degree | Initialise the monomial array up to monomial of degree "degree". |
void F4::MonomialArray::freeTabulatedProduct |
( |
| ) |
|
Free the static 2D array NB_MONOMIAL.
- Precondition
- The static variables NB_VARIABLE must be set beforehand.
Monomial const& F4::MonomialArray::getNumMonomial |
( |
int |
index | ) |
|
Overload the operator [].
- Returns
- Reference on a monomial.
uint8_t F4::MonomialArray::getNumVarlist |
( |
int |
numMon, |
|
|
int |
index |
|
) |
| |
Get _monomialArray[numMon]._varlist[index].
- Parameters
-
numMon | Number of the monomial. |
index | Index of a variable in varlist. |
- Returns
- _monomialArray[numMon]._varlist[index].
int F4::MonomialArray::multNumMonomial |
( |
int |
numMon1, |
|
|
int |
numMon2 |
|
) |
| |
Multiply two monomials, using _tabulatedProduct if possible. Prefer numMon1<numMon2.
- Parameters
-
numMon1 | Number of the first monomial. |
numMon2 | Number of the second monomial. |
- Returns
- Number of the product intToMonomial[numMon1] * intToMonomial[numMon2].
Monomial const& F4::MonomialArray::operator[] |
( |
int |
index | ) |
|
Overload the operator [].
- Returns
- Reference on a monomial.
void F4::MonomialArray::setMonomialArray |
( |
| ) |
|
Modify the dynamic array _monomialArray.
- Precondition
- The array _nbMonomial must be set beforehand.
void F4::MonomialArray::setTabulatedProduct |
( |
int |
degree | ) |
|
Modify the static 2D array TABULATED_PRODUCT.
- Precondition
- Static variables NB_VARIABLE, NB_MONOMIAL and MONOMIAL_ARRAY must be set beforehand.
- Parameters
-
degree | Maximum degree of column monomials. The degree of row monomials is 1. |
std::vector<Monomial> F4::MonomialArray::_monomialArray |
|
private |
int F4::MonomialArray::_nbVariable |
|
private |
int F4::MonomialArray::_numMaxColumn |
|
private |
int F4::MonomialArray::_numMaxRow |
|
private |
size_t F4::MonomialArray::_size |
|
private |
vector<int>* F4::MonomialArray::_tabulatedProduct |
|
private |
_tabulatedProduct[i][j] = number of the product intToMonomial[i] * intToMonomial[j]
Definition at line 138 of file monomial-array.h.
uint8_t* F4::MonomialArray::_varlistArray[128] |
|
private |
int F4::MonomialArray::_varlistIndex |
|
private |
The documentation for this class was generated from the following file: