batched_vdot¶
- torch_sim.math.batched_vdot(x, y, batch_indices)[source]¶
Computes batched vdot (sum of element-wise product) for groups of vectors.
- Parameters:
- Returns:
shape [n_batches] where each element is the sum(x_i * y_i)
- Return type:
Tensor
- for entities belonging to that batch,
summed over all components D and all entities in the batch.