lima.mathematical.factorisation.quadraticsieve
Class SortingTuple

java.lang.Object
  |
  +--lima.mathematical.factorisation.quadraticsieve.SortingTuple
All Implemented Interfaces:
java.lang.Comparable

public class SortingTuple
extends java.lang.Object
implements java.lang.Comparable

A class to represent factors from the factor base with the log of their product This has got to be sorted by the log field. (ie the sum(log(FB[factorIndicies])


Constructor Summary
SortingTuple(int[] factorIndicies, java.math.BigInteger[] factorBase)
          Construct a new SortingTuple object
 
Method Summary
 int compareTo(java.lang.Object o)
           
 int[] getFactorIndicies()
          Return the factor indicies
 float getLog()
          Return the log value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortingTuple

public SortingTuple(int[] factorIndicies,
                    java.math.BigInteger[] factorBase)
Construct a new SortingTuple object

Parameters:
factorIndicies - - indicies of factors in the factor base
Method Detail

getLog

public float getLog()
Return the log value


getFactorIndicies

public int[] getFactorIndicies()
Return the factor indicies


compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable
See Also:
Comparable.compareTo(java.lang.Object)