Skip to content

Commit

Permalink
better sparse logdet() 3
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusMNoack committed Dec 15, 2022
1 parent 8c76a23 commit 9c4ce2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fvgp/sparse_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def random_logdet(self, A,eps = 0.50, delta = 0.01,m = 100):
g = np.random.normal(0, 1., size = N)
v = C @ g
gamma[i,1] = g.T @ v
for k in range(2,m):
for k in range(1,m):
v = C @ v
gamma[i,k] = g.T @ v
s = np.sum(gamma, axis = 0) / float(p)
Expand Down

0 comments on commit 9c4ce2d

Please sign in to comment.