Skip to content

Commit

Permalink
Merge pull request #196 from InnocentBug/eigh-gpu
Browse files Browse the repository at this point in the history
use eigh instead of eigvals
  • Loading branch information
InnocentBug authored Aug 16, 2022
2 parents 431f439 + bda9a3d commit d160c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysages/colvars/shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def principal_moments(positions):
DeviceArray
Eigenvalues of the gyration tensor
"""
return linalg.eigvals(gyration_tensor(positions))
return linalg.eigvalsh(gyration_tensor(positions))


class Asphericity(CollectiveVariable):
Expand Down

0 comments on commit d160c45

Please sign in to comment.