Skip to content

Commit ebd941d

Browse files
authored
Merge pull request #21 from fsaad/main
Fix bug in _parallel_kf_mf.build_block_diag, use block_index not 0
2 parents 762f9a1 + b68cd8b commit ebd941d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayesnewton/ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ def _parallel_kf_mf(As, Qs, H, ys, noise_covs, m0, P0, masks, block_index):
569569

570570
@vmap
571571
def build_block_diag(P_blocks):
572-
P = Pzeros.at[0].add(P_blocks.flatten())
572+
P = Pzeros.at[block_index].add(P_blocks.flatten())
573573
return P
574574

575575
def build_mean(m):

0 commit comments

Comments
 (0)