powered by
Compute the boundary operator for a simplicial complex
boundary(simplices, bound_dim)
A sparse matrix representing \(\partial_{k}\).
A list of simplices (each a numeric vector).
The dimension k of the boundary operator \(\partial_{k}\).
$$\partial_k \sigma = \sum_i (-1)^i [v_0 v_1 \ldots \hat{v}_i \ldots v_k]$$
simplices <- list(c(1, 2), c(3, 4), c(2, 1, 3), c(4, 2)) boundary(simplices, 0)
Run the code above in your browser using DataLab