Skip to content

Commit

Permalink
v0.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
asistradition committed Oct 22, 2022
1 parent 98de6f8 commit 6babfe0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Version 0.8.3

* Explicit error message when complex data is put into the QR solver

### Version 0.8.2

* Corrected ImportError on windows with oneMKL by explicitly library searching for mkl_rt.{i}.dll,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages

DISTNAME = 'sparse_dot_mkl'
VERSION = '0.8.2'
VERSION = '0.8.3'
DESCRIPTION = "Intel MKL wrapper for sparse matrix multiplication"
MAINTAINER = 'Chris Jackson'
MAINTAINER_EMAIL = '[email protected]'
Expand Down
10 changes: 10 additions & 0 deletions sparse_dot_mkl/tests/test_qr_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,13 @@ def test_solver_guard_errors(self):

with self.assertRaises(ValueError):
mat3 = sparse_qr_solve_mkl(self.mat1.tocoo(), self.mat2, cast=True)

with self.assertRaises(ValueError) as raised:
mat4 = sparse_qr_solve_mkl(self.mat1.astype(np.cdouble), self.mat2)
self.assertEqual(
str(raised.exception),
"Complex datatypes are not supported"
)

with self.assertRaises(ValueError):
mat5 = sparse_qr_solve_mkl(self.mat1.astype(np.cdouble), self.mat2)

0 comments on commit 6babfe0

Please sign in to comment.