Пример #1
0
 public FactorWork(int branch, Number Target, PairGenerator gen)
 {
     nums = new Number[2];
     Pair ones = gen.roots[branch];
     nums[0].set(ones.x.Value);
     nums[1].set(ones.y.Value);
     compNum = Target;
     pg = gen;
     if (branch > pg.roots.Length)
         branch = pg.roots.Length;
     howdeep = getDepth();
     setupIndex(howdeep);
     setNums();
 }
Пример #2
0
 //construct class with previously used index array
 public FactorWork(int branch, Number Target, PairGenerator gen, Byte[] index)
     : this(branch, Target, gen)
 {
     this.index = index;//after previous constructor is called set this.index array to index array provided
 }