File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ using Distributions: UnivariateDistribution,
33 MatrixDistribution,
44 Distribution
55
6+ const AMBIGUITY_MSG = " Ambiguous `LHS .~ RHS` or `@. LHS ~ RHS` syntax. The broadcasting " *
7+ " can either be column-wise following the convention of Distributions.jl or " *
8+ " element-wise following Julia's general broadcasting semantics. Please make sure " *
9+ " that the element type of `LHS` is not a supertype of the support type of " *
10+ " `AbstractVector` to eliminate ambiguity."
611
712alg_str (spl:: Sampler ) = string (nameof (typeof (spl. alg)))
813
@@ -239,7 +244,7 @@ function _dot_tilde(
239244 vn:: AbstractVector{<:VarName} ,
240245 vi,
241246)
242- throw (ambiguity_error_msg ( ))
247+ throw (DimensionMismatch (AMBIGUITY_MSG ))
243248end
244249
245250function dot_assume (
@@ -420,7 +425,7 @@ function _dot_tilde(
420425 left:: AbstractMatrix{>:AbstractVector} ,
421426 vi,
422427)
423- throw (ambiguity_error_msg ( ))
428+ throw (DimensionMismatch (AMBIGUITY_MSG ))
424429end
425430
426431function dot_observe (
You can’t perform that action at this time.
0 commit comments