barycentric_coordinates#
- iskra.geometry.barycentric.barycentric_coordinates(x: Tensor, simplices: Tensor, eps: float = 1e-12) tuple[Tensor, Tensor][SOURCE]#
Computes the barycentric coordinates of points on simplices.
This is thin dispatcher that picks one of the specialized barycentric coordinates function based on the number of corners in the simplex. Works for edges, triangles, and tetrahedra.
- Parameters:
- Returns: