edu.stanford.math.plex4.streams.utility
public class StreamUtility extends java.lang.Object
Constructor and Description |
---|
StreamUtility() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<Simplex,Simplex>> |
alexanderWhitneyDiagonal(Simplex simplex)
This function computes the Alexander-Whitney diagonal map of a given simplex defined by
Delta([v_0, ...
|
static edu.stanford.math.primitivelib.autogen.matrix.IntSparseMatrix |
createAlexanderWhitneyMatrix(AbstractFilteredStream<Simplex> stream) |
static <T> edu.stanford.math.primitivelib.autogen.formal_sum.DoubleSparseFormalSum<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,T>> |
createBoundaryMatrixAsDoubleSum(AbstractFilteredStream<T> stream)
This function returns the boundary matrix for the entire complex.
|
static <T> edu.stanford.math.primitivelib.autogen.formal_sum.DoubleSparseFormalSum<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,T>> |
createBoundaryMatrixAsDoubleSum(AbstractFilteredStream<T> stream,
int dimension)
This function returns the boundary matrix for the entire complex.
|
static <T> edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,T>> |
createBoundaryMatrixAsIntSum(AbstractFilteredStream<T> stream)
This function returns the boundary matrix for the entire complex.
|
static <T> edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,T>> |
createBoundaryMatrixAsIntSum(AbstractFilteredStream<T> stream,
int dimension)
This function returns the boundary matrix for the entire complex.
|
static <T> java.util.List<edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<T>> |
getBoundaryMatrixColumns(AbstractFilteredStream<T> stream,
int dimension)
This function returns the boundary matrix at the specified dimension as a list of columns
|
static <R,T> java.util.List<edu.stanford.math.primitivelib.autogen.formal_sum.ObjectSparseFormalSum<R,T>> |
getBoundaryMatrixColumns(AbstractFilteredStream<T> stream,
int dimension,
edu.stanford.math.primitivelib.autogen.formal_sum.ObjectAlgebraicFreeModule<R,T> chainModule)
This function produces a list of formal sums which are the columns of the boundary
matrix at the requested dimension.
|
static AbstractUndirectedGraph |
getNeighborhoodGraph(AbstractFilteredStream<Simplex> stream)
This function returns the 1-skeleton of a filtered simplicial complex in the form of an undirected graph.
|
static UndirectedListGraph |
getNeighborhoodGraph(AbstractFilteredStream<Simplex> stream,
int minFiltrationIndex)
This function returns a graph containing the 1-skeleton of a given filtered simplicial complex.
|
static <T> java.util.List<T> |
getSkeleton(AbstractFilteredStream<T> stream,
int k)
This function dumps the k-skeleton of a chain complex into a list.
|
static <T> int |
getSkeletonSize(AbstractFilteredStream<T> stream,
int k)
This function computes the size of the k-skeleton of a chain complex.
|
public static <T> java.util.List<T> getSkeleton(AbstractFilteredStream<T> stream, int k)
T
- the type of the basis elementsstream
- the stream to searchk
- the dimension of the objects to retrievepublic static <T> int getSkeletonSize(AbstractFilteredStream<T> stream, int k)
T
- the type of the basis elementsstream
- the stream to searchk
- the dimension of the objects to retrievepublic static <T> edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,T>> createBoundaryMatrixAsIntSum(AbstractFilteredStream<T> stream)
T
- the underlying basis typestream
- the complexpublic static <T> edu.stanford.math.primitivelib.autogen.formal_sum.DoubleSparseFormalSum<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,T>> createBoundaryMatrixAsDoubleSum(AbstractFilteredStream<T> stream)
T
- the underlying basis typestream
- the complexpublic static <T> edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,T>> createBoundaryMatrixAsIntSum(AbstractFilteredStream<T> stream, int dimension)
T
- the underlying basis typestream
- the complexdimension
- the dimension to get the boundary forpublic static <T> edu.stanford.math.primitivelib.autogen.formal_sum.DoubleSparseFormalSum<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,T>> createBoundaryMatrixAsDoubleSum(AbstractFilteredStream<T> stream, int dimension)
T
- the underlying basis typestream
- the complexdimension
- the dimension to get the boundary forpublic static <T> java.util.List<edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<T>> getBoundaryMatrixColumns(AbstractFilteredStream<T> stream, int dimension)
T
- the underlying basis typestream
- the complexdimension
- the dimension to get the boundary forpublic static <R,T> java.util.List<edu.stanford.math.primitivelib.autogen.formal_sum.ObjectSparseFormalSum<R,T>> getBoundaryMatrixColumns(AbstractFilteredStream<T> stream, int dimension, edu.stanford.math.primitivelib.autogen.formal_sum.ObjectAlgebraicFreeModule<R,T> chainModule)
R
- the type of the ring in which to computeT
- the type of the basis elementsstream
- the stream to perform the operation ondimension
- the dimensionchainModule
- the module which performs the algebraic operations (forming the sums)public static UndirectedListGraph getNeighborhoodGraph(AbstractFilteredStream<Simplex> stream, int minFiltrationIndex)
stream
- the stream to perform the operation onminFiltrationIndex
- the minimum filtration indexpublic static AbstractUndirectedGraph getNeighborhoodGraph(AbstractFilteredStream<Simplex> stream)
stream
- the stream to perform the operation onpublic static edu.stanford.math.primitivelib.autogen.matrix.IntSparseMatrix createAlexanderWhitneyMatrix(AbstractFilteredStream<Simplex> stream)
public static java.util.List<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<Simplex,Simplex>> alexanderWhitneyDiagonal(Simplex simplex)
simplex
- the simplex argument