autopdex.geometry.triangle_areas
- autopdex.geometry.triangle_areas(x_nodes, elements)[source]
Compute the areas of multiple triangles given their vertices and connectivity (jitted).
- Parameters:
x_nodes (jnp.ndarray) – Array of shape (n, 2) containing the coordinates of the nodes.
elements (jnp.ndarray) – Array of shape (m, 3) containing the indices of the nodes forming each triangle.
- Returns:
Array of shape (m,) containing the areas of the triangles.
- Return type:
jnp.ndarray