Skip to content

Commit d321748

Browse files
committed
Fix order of arguments in dot product
1 parent 48c3b98 commit d321748

File tree

2 files changed

+97
-43
lines changed

2 files changed

+97
-43
lines changed

aehmc/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def gaussian_metric(
6464

6565
def momentum_generator(srng: RandomStream) -> TensorVariable:
6666
norm_samples = srng.normal(0, 1, size=shape)
67-
momentum = dot(norm_samples, mass_matrix_sqrt)
67+
momentum = dot(mass_matrix_sqrt, norm_samples)
6868
return momentum
6969

7070
def kinetic_energy(momentum: TensorVariable) -> TensorVariable:

0 commit comments

Comments
 (0)