You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/plugins/variational_constraints/variational_constraints_engine.jl
+24-4Lines changed: 24 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -214,6 +214,13 @@ function Base.show(io::IO, constraint::FactorizationConstraint{V, F} where {V, F
214
214
print(io, join(getconstraint(constraint), ""))
215
215
end
216
216
217
+
function Base.show(io::IO, constraint::FactorizationConstraint{V, F}where {V, F})
218
+
print(io, "q(")
219
+
print(io, join(getvariables(constraint), ", "))
220
+
print(io, ") = ")
221
+
print(io, getconstraint(constraint))
222
+
end
223
+
217
224
"""
218
225
A `MarginalFormConstraint` represents a single functional form constraint in a variational marginal constraint specification. We use type parametrization
219
226
to dispatch on different types of constraints, for example `q(x, y) :: MvNormal` should be treated different from `q(x) :: Normal`.
0 commit comments