Example #1
0
    def __init__(self, A):
        """Create new BKZ object.

        :param A: an integer matrix, a GSO object or an LLL object

        """
        BKZBase.__init__(self, A)
Example #2
0
File: bkz2.py Project: fplll/fpylll
    def __init__(self, A):
        """Create new BKZ object.

        :param A: an integer matrix, a GSO object or an LLL object

        """
        BKZBase.__init__(self, A)
Example #3
0
    def __init__(self, A):
        """Create new BKZ object.

        :param A: an integer matrix, a GSO object or an LLL object

        """
        BKZBase.__init__(self, A)
        self.M.discover_all_rows()  # TODO: this belongs in __call__ (?)
Example #4
0
    def __init__(self, A, preproc_decider):
        """Create new BKZ object.

        :param A: an integer matrix, a GSO object or an LLL object

        """
        BKZBase.__init__(self, A)
        self.M.discover_all_rows()  # TODO: this belongs in __call__ (?)
        self.preproc_decider = preproc_decider
        self.last_pruning = AUTO_MAX_BLOCK_SIZE * [None]
Example #5
0
File: bkz3.py Project: malb/yolo
    def __init__(self, A, tuners=None, recycle=True):
        """Construct a new instance of the BKZ algorithm.

        :param A: an integer matrix, a GSO object or an LLL object

        """
        BKZBase.__init__(self, A)
        self.recycle = recycle

        self.tuners = YOLO_MAX_BLOCK_SIZE * [None]
        if tuners is None:
            for i in range(YOLO_MAX_BLOCK_SIZE):
                self.tuners[i] = Tuner(i, self.tuners)
        else:
            self.tuners = tuners