count_dof¶ torch_sim.quantities.count_dof(tensor)[source]¶ Count the degrees of freedom in the system. Parameters: tensor (Tensor) – Tensor to count the degrees of freedom in Returns: Number of degrees of freedom Return type: int