edge_lengths#

iskra.geometry.volume.edge_lengths(edges: Tensor) Tensor[SOURCE]#

Computes the lengths of a list of edges.

Parameters:

edges (Tensor[Float, [Bs, 2, Dim]]) – Line segments tensor s.t. second to last dimension represent end points, last represents coordinates.

Returns:

(Tensor[Float, [Bs]]) – Line segment lengths.