Learn R Programming

SimplicialComplex (version 0.1.0)

boundary: Compute the boundary operator for a simplicial complex

Description

Compute the boundary operator for a simplicial complex

Usage

boundary(simplices, bound_dim)

Value

A sparse matrix representing \(\partial_{k}\).

Arguments

simplices

A list of simplices (each a numeric vector).

bound_dim

The dimension k of the boundary operator \(\partial_{k}\).

Details

$$\partial_k \sigma = \sum_i (-1)^i [v_0 v_1 \ldots \hat{v}_i \ldots v_k]$$

Examples

Run this code
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