_joint_prior_residual

pmrf.objectives.problems._joint_prior_residual(slots: dict[int, tuple[_JointSlot, Array]]) → Array

Returns the prior residual \(L_0^{-1}(\theta - \mu)\) of one joint multivariate normal prior at the physical values its slots were matched with, one vector per batch element.

Its vector is taken to the prior’s space as pmrf.parameters.log_prior() takes it, without the change-of-variables term, which is constant over declared or physical space. A value outside a parameter’s validity is left to the box edges.