Skip to content

Commit a7006fd

Browse files
committed
adapt change in csr matrix interface
1 parent 8988ed3 commit a7006fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fail-fast: False
2222
matrix:
2323
os: [ubuntu-latest, macos-latest, windows-latest]
24-
python-version: ['3.9', '3.10', '3.11']
24+
python-version: ['3.10', '3.11', '3.12']
2525

2626
steps:
2727
- uses: actions/checkout@v3

econpizza/utilities/jacobian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def lu_factor_from_sparse(lu):
4343
pc = lu.perm_c
4444
n = len(pr)
4545
pr = jnp.empty(n, dtype=int).at[pr].set(jnp.arange(n))
46-
lu_factor = lu.L.A - jnp.eye(n) + lu.U.A
46+
lu_factor = lu.L.todense() - jnp.eye(n) + lu.U.todense()
4747
return (lu_factor, pr), pc
4848

4949

0 commit comments

Comments
 (0)