Closed bvdmitri closed 7 months ago
@Nimrais This task has been added to the milestone for tracking and prioritization.
I understand the issue at hand.
But how do we want to resolve it?
initmarginals = (z= container,)
it should assign the each marginal associated with the symbol z
to container
itself. On the other hand, if we use:
initmarginals = (z.=container,)
then it should assign each index of z
to the value at the aligned index in container,
am I right?
each marginal associated with the symbol z to container itself
No, it should simply check that the lengths of z
and the container
match before calling zip
.
See here. Please do the same for messages here
initmarginals = (z.=container,)
This syntax is not possible in Julia, we don't support it at all, so no need to do anything here
setmarginals!
from ReactiveMP useszip
, hence thisWill initialize only the first
z
and skip the rest. We should use broadcasting instead