Skip to content

Commit

Permalink
Vectorise
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Sep 1, 2023
1 parent 7195b73 commit 3cbff90
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/tests/beagle.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ def compute_backward_probability_matrix(ref_h, query_h, rho, mu):
sum_site = np.sum(bm[i, :])
scale = (1 - rho[i + 1]) / sum_site
shift = rho[i + 1] / h
for j in np.arange(h):
bm[i, j] = scale * bm[i, j] + shift
bm[i, :] = scale * bm[i, :] + shift
return bm


Expand Down

0 comments on commit 3cbff90

Please sign in to comment.