示例#1
0
        public PolyRelationsSieveProgress(GNFS gnfs, int quantity, int valueRange)
        {
            _gnfs     = gnfs;
            Relations = new RelationContainer();

            A          = 0;
            B          = 3;
            Quantity   = quantity;
            ValueRange = valueRange;

            if (MaxB == 0)
            {
                MaxB = (uint)gnfs.PrimeFactorBase.AlgebraicFactorBaseMax;
            }
        }
示例#2
0
        public PolyRelationsSieveProgress(GNFS gnfs, int smoothRelationsTargetQuantity, BigInteger valueRange)
        {
            _gnfs     = gnfs;
            Relations = new RelationContainer();

            A          = 0;
            B          = 3;
            ValueRange = valueRange;

            if (smoothRelationsTargetQuantity == -1)
            {
                SmoothRelations_TargetQuantity = SmoothRelationsRequiredForMatrixStep;
            }
            else
            {
                SmoothRelations_TargetQuantity = smoothRelationsTargetQuantity;
            }

            if (MaxB == 0)
            {
                MaxB = (uint)gnfs.PrimeFactorBase.AlgebraicFactorBaseMax;
            }
        }
示例#3
0
 public PolyRelationsSieveProgress()
 {
     Relations = new RelationContainer();
 }