forked from plumed/plumed2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimisation of MatrixVectorProduct to improve performance when multi…
…plying matrix by vector of ones If you are multiplying the matrix by a vector of ones you don't need to do any multiplication. You can just sum each row of the matrix. This is now used to calculate this type of matrix-vector product. The change speeds up the code slightly in an operation that is done reasonably often. Changes to regtests are due to the derivatives on the constant vector of ones no longer being stored or used.
- Loading branch information
Gareth Aneurin Tribello
committed
Jul 16, 2024
1 parent
2a1e7d3
commit a24a72a
Showing
7 changed files
with
455 additions
and
432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.