Closed zoj613 closed 3 years ago
Is there a reason why at.inv is used instead of 1 / inverse_mass_matrix when inverse_mass_matrix is 1-dimensional? https://github.com/aesara-devs/aehmc/blob/87b0c4d20c276d191522132c1f3f00fec70239b1/aehmc/metrics.py#L15
at.inv
1 / inverse_mass_matrix
Does it have an advantage over the latter? Apologies if this is obvious to some but I was confused by the line when I read it.
at.inv is the old, deprecated name for at.reciprocal.
at.reciprocal
Is there a reason why
at.inv
is used instead of1 / inverse_mass_matrix
when inverse_mass_matrix is 1-dimensional? https://github.com/aesara-devs/aehmc/blob/87b0c4d20c276d191522132c1f3f00fec70239b1/aehmc/metrics.py#L15Does it have an advantage over the latter? Apologies if this is obvious to some but I was confused by the line when I read it.