Skip to content

Commit

Permalink
Merge pull request #323 from mdekstrand/tweak/numba-0.56
Browse files Browse the repository at this point in the history
Support Numba 0.56 (#319)
  • Loading branch information
mdekstrand committed Aug 16, 2022
2 parents ca4fba0 + 9a85e67 commit c9d1bf4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions lenskit/math/solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ def _dposv(A, b, lower):
# invert the meaning of 'lower' and 'trans', and the function will work fine.
# We also need to swap index orders
uplo = __uplo_U if lower else __uplo_L
n_p = __ffi.from_buffer(np.array([A.shape[0]], dtype=np.intc))
nrhs_p = __ffi.from_buffer(np.ones(1, dtype=np.intc))
narr = np.array([A.shape[0]], dtype=np.intc)
n_p = __ffi.from_buffer(narr)
nrhs = np.ones(1, dtype=np.intc)
nrhs_p = __ffi.from_buffer(nrhs)
info = np.zeros(1, dtype=np.intc)
info_p = __ffi.from_buffer(info)

Expand All @@ -52,7 +54,7 @@ def _dposv(A, b, lower):
__ffi.from_buffer(b), n_p,
info_p)

_ref_sink(n_p, nrhs_p, info, info_p)
_ref_sink(narr, n_p, nrhs, nrhs_p, info, info_p)

return info[0]

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ dependencies = [
"pandas >=1.0, ==1.*",
"numpy >= 1.19",
"scipy >= 1.2",
"numba >= 0.51, < 0.56",
"numba >= 0.51, < 0.57",
"cffi >= 1.12.2",
"psutil >= 5",
"binpickle >= 0.3.2",
"seedbank >= 0.1.0",
"csr >= 0.3.1",
"csr >= 0.4",
]

[project.urls]
Expand Down

0 comments on commit c9d1bf4

Please sign in to comment.