edu.stanford.math.plex4.utility
public class FormalSumUtility extends java.lang.Object
| Constructor and Description | 
|---|
FormalSumUtility()  | 
| Modifier and Type | Method and Description | 
|---|---|
static <U> java.util.List<U> | 
extractActiveBasisElements(edu.stanford.math.primitivelib.autogen.formal_sum.BooleanSparseFormalSum<U> chain)
This function returns all of the basis elements in a chain which have
 non-zero coefficients. 
 | 
static <U> java.util.List<U> | 
extractActiveBasisElements(edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U> chain)
This function returns all of the basis elements in a chain which have
 non-zero coefficients. 
 | 
static <F,U> java.util.List<U> | 
extractActiveBasisElements(edu.stanford.math.primitivelib.autogen.formal_sum.ObjectSparseFormalSum<F,U> chain)
This function returns all of the basis elements in a chain which have
 non-zero coefficients. 
 | 
static java.util.List<java.lang.Integer> | 
extractCoefficients(edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<?> chain)
This function returns the coefficients for a formal sum in the form of a
 list. 
 | 
static <F,U> java.util.List<F> | 
extractCoefficients(edu.stanford.math.primitivelib.autogen.formal_sum.ObjectSparseFormalSum<F,U> chain)
This function returns the coefficients for a formal sum in the form of a
 list. 
 | 
static int[][] | 
extractVertices(java.util.List<Simplex> simplices)
This function extracts the set of vertices from a list of simplices and returns a 2-d
 array containing the vertices. 
 | 
public static <F,U> java.util.List<U> extractActiveBasisElements(edu.stanford.math.primitivelib.autogen.formal_sum.ObjectSparseFormalSum<F,U> chain)
chain - public static <U> java.util.List<U> extractActiveBasisElements(edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<U> chain)
chain - public static <U> java.util.List<U> extractActiveBasisElements(edu.stanford.math.primitivelib.autogen.formal_sum.BooleanSparseFormalSum<U> chain)
chain - public static java.util.List<java.lang.Integer> extractCoefficients(edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<?> chain)
chain - public static <F,U> java.util.List<F> extractCoefficients(edu.stanford.math.primitivelib.autogen.formal_sum.ObjectSparseFormalSum<F,U> chain)
chain - public static int[][] extractVertices(java.util.List<Simplex> simplices)
simplices -