Skip to content

Commit

Permalink
Fix solve
Browse files Browse the repository at this point in the history
  • Loading branch information
SamDuffield committed Jun 5, 2024
1 parent 8da72c8 commit 1348369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thermox/linalg.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import jax.numpy as jnp
from jax.lax import fori_loop
from jax import Array, random
from thermox.sampler import sample, _sample_identity_diffusion
from thermox.sampler import sample, sample_identity_diffusion
from thermox.utils import ProcessedDriftMatrix


Expand Down Expand Up @@ -37,7 +37,7 @@ def solve(
key = random.PRNGKey(0)
ts = jnp.arange(burnin, burnin + num_samples) * dt
x0 = jnp.zeros_like(b)
samples = _sample_identity_diffusion(key, ts, x0, A, jnp.linalg.solve(A, b))
samples = sample_identity_diffusion(key, ts, x0, A, jnp.linalg.solve(A, b))
return jnp.mean(samples, axis=0)


Expand Down

0 comments on commit 1348369

Please sign in to comment.