simplex_codim#

iskra.geometry.distances.simplex_codim(simplices: Tensor) int[SOURCE]#

Codimension of a set of simplices.

Returns Dim - SDim where Dim is the ambient dimension and SDim is the simplex dimension, i.e., SDim := S - 1 where S is the number of simplex corners.

Parameters:

simplices (Tensor[Float, [Bs, S, Dim]]) – Simplices tensor s.t. second to last dimension represent corners, last represents coordinates.

Returns:

(int) – Codimension.