volume_form#

iskra.geometry.volume.volume_form(simplices: Tensor) Tensor[SOURCE]#

Computes the generalized volumes of a list of simplices.

This is a convenience function that checks the number of corners in the simplex and calls into one of edge_lengths, triangle_areas, or tetrahedron_volumes.

Parameters:

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

Returns:

(Tensor[Float, [Bs]]) – Simplices generalized volumes.