edu.stanford.math.plex4.streams.derived
T
- the underlying basis type of the first complexU
- the underlying basis type of the second complexpublic class HomStream<T,U> extends TensorStream<T,U>
TensorStream
stream1, stream2
Constructor and Description |
---|
HomStream(AbstractFilteredStream<T> domainStream,
AbstractFilteredStream<U> codomainStream)
This constructor initializes the hom-complexes from two existing chain complexes.
|
Modifier and Type | Method and Description |
---|---|
int |
getDimension(edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,U> element)
This function returns the dimension of a basis element within
the chain complex.
|
<R> java.util.List<edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,U>>> |
getHomotopies() |
<R> java.util.List<edu.stanford.math.primitivelib.autogen.formal_sum.ObjectSparseFormalSum<R,edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,U>>> |
getHomotopies(edu.stanford.math.primitivelib.autogen.formal_sum.ObjectAlgebraicFreeModule<R,edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,U>> chainModule)
This function returns the set of chain homotopies of between the domain and codomain chain complexes.
|
<R extends java.lang.Number> |
getHomotopiesAsDouble(edu.stanford.math.primitivelib.autogen.formal_sum.ObjectAlgebraicFreeModule<R,edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,U>> chainModule)
This function returns the set of chain homotopies between the domain and codomain chain complexes as formal
sums over pairs with double coefficients.
|
static <R extends java.lang.Number,M> |
toDoubleFormalSum(java.util.List<edu.stanford.math.primitivelib.autogen.formal_sum.ObjectSparseFormalSum<R,M>> objectFormalSumList)
This function converts a list of ObjectSparseFormalSum objects to DoubleSparseFormalSum objects.
|
static <R extends java.lang.Number,M> |
toDoubleFormalSum(edu.stanford.math.primitivelib.autogen.formal_sum.ObjectSparseFormalSum<R,M> objectFormalSum)
This function converts an ObjectSparseFormalSum to a DoubleSparseFormalSum object.
|
containsElement, finalizeStream, getBasisComparator, getBoundary, getBoundaryCoefficients, getFiltrationIndex, getFiltrationValue, getMaximumFiltrationIndex, getMinimumFiltrationIndex, getSize, isFinalized, iterator, transform
public HomStream(AbstractFilteredStream<T> domainStream, AbstractFilteredStream<U> codomainStream)
domainStream
- the domain complexcodomainStream
- the codomain complexpublic int getDimension(edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,U> element)
AbstractFilteredStream
getDimension
in interface AbstractFilteredStream<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,U>>
getDimension
in class TensorStream<T,U>
element
- the element to get the dimension ofpublic <R> java.util.List<edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,U>>> getHomotopies()
public <R> java.util.List<edu.stanford.math.primitivelib.autogen.formal_sum.ObjectSparseFormalSum<R,edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,U>>> getHomotopies(edu.stanford.math.primitivelib.autogen.formal_sum.ObjectAlgebraicFreeModule<R,edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,U>> chainModule)
R
- the underlying type of the ring in which to compute inchainModule
- the free module over pairs of type (T, U) with coefficients in Rpublic <R extends java.lang.Number> java.util.List<edu.stanford.math.primitivelib.autogen.formal_sum.DoubleSparseFormalSum<edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,U>>> getHomotopiesAsDouble(edu.stanford.math.primitivelib.autogen.formal_sum.ObjectAlgebraicFreeModule<R,edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair<T,U>> chainModule)
R
- the underlying type of the ring in which to compute inchainModule
- the free module over pairs of type (T, U) with coefficients in Rpublic static <R extends java.lang.Number,M> edu.stanford.math.primitivelib.autogen.formal_sum.DoubleSparseFormalSum<M> toDoubleFormalSum(edu.stanford.math.primitivelib.autogen.formal_sum.ObjectSparseFormalSum<R,M> objectFormalSum)
R
- the underlying type of the original coefficient field (must extend Number)M
- the type of the basis elements in the formal sumssumobjectFormalSum
- the ObjectSparseFormalSum to convertpublic static <R extends java.lang.Number,M> java.util.List<edu.stanford.math.primitivelib.autogen.formal_sum.DoubleSparseFormalSum<M>> toDoubleFormalSum(java.util.List<edu.stanford.math.primitivelib.autogen.formal_sum.ObjectSparseFormalSum<R,M>> objectFormalSumList)
R
- the underlying type of the original coefficient field (must extend Number)M
- the type of the basis elements in the formal sumsobjectFormalSumList
- the list of ObjectSparseFormalSum objects to convert