Commit 8445048e authored by Dahua Lin's avatar Dahua Lin

minor update of fallbacks

parent 33ba185c
...@@ -11,6 +11,8 @@ size(d::UnivariateDistribution) = () ...@@ -11,6 +11,8 @@ size(d::UnivariateDistribution) = ()
size(d::MultivariateDistribution) = (dim(d),) size(d::MultivariateDistribution) = (dim(d),)
size(d::MatrixDistribution) = (dim(d), dim(d)) # override if the matrix isn't square size(d::MatrixDistribution) = (dim(d), dim(d)) # override if the matrix isn't square
length(d::UnivariateDistribution) = 1
length(d::MultivariateDistribution) = dim(d)
length(d::Distribution) = prod(size(d)) length(d::Distribution) = prod(size(d))
# support handling # support handling
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment