Skip to content

Commit

Permalink
Add docstring for assoc scan
Browse files Browse the repository at this point in the history
  • Loading branch information
denismelanson committed Jul 11, 2024
1 parent c114633 commit 10867ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions thermox/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def solve(
burnin: Time-step index corresponding to the end of the burn-in period.
Samples before this step are not collected.
key: JAX random key
associative_scan: If True, uses jax.lax.associative_scan.
Returns:
Approximate solution, x, of the linear system.
Expand Down Expand Up @@ -64,6 +65,7 @@ def inv(
burnin: Time-step index corresponding to the end of the burn-in period.
Samples before this step are not collected.
key: JAX random key
associative_scan: If True, uses jax.lax.associative_scan.
Returns:
Approximate inverse of A.
Expand Down Expand Up @@ -100,6 +102,7 @@ def expnegm(
key: JAX random key
alpha: Regularization parameter to ensure diffusion matrix
is symmetric positive definite.
associative_scan: If True, uses jax.lax.associative_scan.
Returns:
Approximate negative matrix exponential, exp(-A).
Expand Down Expand Up @@ -140,6 +143,7 @@ def expm(
key: JAX random key
alpha: Regularization parameter to ensure diffusion matrix
is symmetric positive definite.
associative_scan: If True, uses jax.lax.associative_scan.
Returns:
Approximate matrix exponential, exp(A).
Expand Down

0 comments on commit 10867ab

Please sign in to comment.