Skip to content

Commit

Permalink
Fix order of arguments in dot product
Browse files Browse the repository at this point in the history
  • Loading branch information
rlouf committed Sep 1, 2021
1 parent 48c3b98 commit d321748
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 43 deletions.
2 changes: 1 addition & 1 deletion aehmc/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def gaussian_metric(

def momentum_generator(srng: RandomStream) -> TensorVariable:
norm_samples = srng.normal(0, 1, size=shape)
momentum = dot(norm_samples, mass_matrix_sqrt)
momentum = dot(mass_matrix_sqrt, norm_samples)
return momentum

def kinetic_energy(momentum: TensorVariable) -> TensorVariable:
Expand Down
Loading

0 comments on commit d321748

Please sign in to comment.