Skip to content

Commit

Permalink
OMG stupid typo #facepalm!
Browse files Browse the repository at this point in the history
  • Loading branch information
juanitorduz committed Nov 15, 2024
1 parent d26ec57 commit 495610c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpyro/contrib/hsgp/laplacian.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ def eigenfunctions(x: ArrayLike, ell: float | list[float], m: int | list[int]) -
x_ = jnp.expand_dims(x, axis=-1)
else:
x_ = jnp.array(x)
dim = jnp.shape(x)[-1] # others assumed batch dims
n_batch_dims = jnp.ndim(x) - 1
dim = jnp.shape(x_)[-1] # others assumed batch dims
n_batch_dims = jnp.ndim(x_) - 1
ell_ = _convert_ell(ell, dim)
a = jnp.expand_dims(ell_, tuple(range(n_batch_dims)))
b = jnp.expand_dims(sqrt_eigenvalues(ell_, m, dim), tuple(range(n_batch_dims)))
Expand Down

0 comments on commit 495610c

Please sign in to comment.