google-deepmind / torch-distributions

Probability distributions, wrapped for Torch.
BSD 3-Clause "New" or "Revised" License
61 stars 25 forks source link

Support 1xD diagonal covariance matrices in mvn.logpdf #19

Open jucor opened 11 years ago

jucor commented 11 years ago

That would avoid the caller having to systematically resize. The rewrite of the parsing of mvn.rnd for 3 arguments in pull-request #16 supports it. I realize that mvn.rnd itself might not support it if only given 2 arguments, hence the issue #18.