All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jscl.math.polynomial.groebner.Sugar Maven / Gradle / Ivy

The newest version!
package jscl.math.polynomial.groebner;

import java.util.Comparator;

class Sugar implements Comparator {
    public static final Comparator comparator=new Sugar();

    private Sugar() {}

    public int compare(Pair pa1, Pair pa2) {
        if(pa1.sugarpa2.sugar) return 1;
        else return pa1.compareTo(pa2);
    }

    public int compare(Object o1, Object o2) {
        return compare((Pair)o1,(Pair)o2);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy