Sparse Chain complexes

SparseMat
SparseMat(A)

Inputs a matrix A and returns the matrix in sparse format.
TransposeOfSparseMat
TransposeOfSparseMat(A)

Inputs a sparse matrix A and returns its transpose sparse format.
ReverseSparseMat
ReverseSparseMat(A)

Inputs a sparse matrix A and modifies it by reversing the order of the columns. This function modifies A and returns no value.
SparseRowMult
SparseRowMult(A,i,k)

Multiplies the i-th row of a sparse matrix A by k. The sparse matrix A is modified but nothing is returned.

SparseRowInterchange
SparseRowInterchange(A,i,k)

Interchanges the i-th and j-th rows of a sparse matrix A by k. The sparse matrix A is modified but nothing is returned.

SparseRowAdd
SparseRowAdd(A,i,j,k)

Adds k times the j-th row to the i-th row of a sparse matrix A. The sparse matrix A is modified but nothing is returned.

SparseSemiEchelon
SparseSemiEchelon(A)

Converts a sparse matrix A to semi-echelon form (which means echelon form up to a permutation of rows). The sparse matrix A is modified but nothing is returned.

RankMatDestructive
RankMatDestructive(A)

Returns the rank of a sparse matrix A. The sparse matrix A is modified during the calculation.

RankMat
RankMat(A)

Returns the rank of a sparse matrix A.

SparseChainComplex
SparseChainComplex(Y)

Inputs a regular CW-complex Y and returns a sparse chain complex which is chain homotopy equivalent to the cellular chain complex of Y. The function uses discrete vector fields to calculate a smallish chain complex.

SparseChainComplexOfRegularCWComplex
SparseChainComplexOfRegularCWComplex(Y)

Inputs a regular CW-complex Y and returns its cellular chain complex as a sparse chain complex. The function SparseChainComplex(Y) will usually return a smaller chain complex.

SparseBoundaryMatrix
SparseBoundaryMatrix(C,n)

Inputs a sparse chain complex C and integer n. Returns the n-th boundary matrix of the chain complex in sparse format.

Bettinumbers
Bettinumbers(C,n)

Inputs a sparse chain complex C and integer n. Returns the n-th Netti number of the chain complex.