Révision 152
| pobysoPythonSage/src/sageSLZ/sageSLZ.sage (revision 152) | ||
|---|---|---|
| 521 | 521 |
This function was introduced in order to avoid the computation of the |
| 522 | 522 |
all the polynomials from the full matrix (even those built from rows |
| 523 | 523 |
that do no verify the Coppersmith condition) as this may involves |
| 524 |
expensive operations over (large) integer. |
|
| 524 |
expensive operations over (large) integers.
|
|
| 525 | 525 |
""" |
| 526 | 526 |
## Check arguments. |
| 527 | 527 |
if len(knownMonomials) == 0: |
| ... | ... | |
| 580 | 580 |
var2Bound) |
| 581 | 581 |
) |
| 582 | 582 |
def slz_compute_reduced_polynomials_list(reducedMatrix, |
| 583 |
knownMonomials, |
|
| 584 |
var1, |
|
| 585 |
var1Bound, |
|
| 586 |
var2, |
|
| 587 |
var2Bound): |
|
| 583 |
knownMonomials,
|
|
| 584 |
var1,
|
|
| 585 |
var1Bound,
|
|
| 586 |
var2,
|
|
| 587 |
var2Bound):
|
|
| 588 | 588 |
""" |
| 589 | 589 |
From a reduced matrix, holding the coefficients, from a monomials list, |
| 590 | 590 |
from the bounds of each variable, compute the corresponding polynomials |
| ... | ... | |
| 592 | 592 |
|
| 593 | 593 |
The elements in knownMonomials must be of the "right" polynomial type. |
| 594 | 594 |
They set the polynomial type of the output polynomials list. |
| 595 |
@param reducedMatrix: the reduced matrix as output from LLL; |
|
| 596 |
@param kwnonMonomials: the ordered list of the monomials used to |
|
| 597 |
build the polynomials; |
|
| 598 |
@param var1: the first variable (of the "right" type); |
|
| 599 |
@param var1Bound: the first variable bound; |
|
| 600 |
@param var2: the second variable (of the "right" type); |
|
| 601 |
@param var2Bound: the second variable bound. |
|
| 602 |
@return: a list of polynomials obtained with the reduced coefficients |
|
| 603 |
and scaled down with the bounds |
|
| 595 | 604 |
""" |
| 596 | 605 |
|
| 597 | 606 |
# TODO: check input arguments. |
Formats disponibles : Unified diff