293293"""
294294Do a sequential update of the message tensors on `edges`
295295"""
296- function update_one_iteration (
296+ function update_iteration (
297297 alg:: Algorithm"bp" ,
298298 bpc:: AbstractBeliefPropagationCache ,
299299 edges:: Vector ;
@@ -315,14 +315,14 @@ Do parallel updates between groups of edges of all message tensors
315315Currently we send the full message tensor data struct to update for each edge_group. But really we only need the
316316mts relevant to that group.
317317"""
318- function update_one_iteration (
318+ function update_iteration (
319319 alg:: Algorithm ,
320320 bpc:: AbstractBeliefPropagationCache ,
321321 edge_groups:: Vector{<:Vector{<:PartitionEdge}} ;
322322)
323323 new_mts = empty (messages (bpc))
324324 for edges in edge_groups
325- bpc_t = update_one_iteration (alg. kwargs. message_update_alg, bpc, edges)
325+ bpc_t = update_iteration (alg. kwargs. message_update_alg, bpc, edges)
326326 for e in edges
327327 set! (new_mts, e, message (bpc_t, e))
328328 end
@@ -340,7 +340,7 @@ function update(alg::Algorithm, bpc::AbstractBeliefPropagationCache)
340340 end
341341 for i in 1 : alg. kwargs. maxiter
342342 diff = compute_error ? Ref (0.0 ) : nothing
343- bpc = update_one_iteration (alg, bpc, alg. kwargs. edge_sequence; (update_diff!)= diff)
343+ bpc = update_iteration (alg, bpc, alg. kwargs. edge_sequence; (update_diff!)= diff)
344344 if compute_error && (diff. x / length (alg. kwargs. edge_sequence)) <= alg. kwargs. tol
345345 if alg. kwargs. verbose
346346 println (" BP converged to desired precision after $i iterations." )
0 commit comments