From 6babfe006b5cfd1790131603829a3b5eb72d30b7 Mon Sep 17 00:00:00 2001 From: asistradition Date: Sat, 22 Oct 2022 14:21:54 -0400 Subject: [PATCH] v0.8.3 --- CHANGELOG.md | 4 ++++ setup.py | 2 +- sparse_dot_mkl/tests/test_qr_solver.py | 10 ++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bac767..362e60e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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, diff --git a/setup.py b/setup.py index 011444f..e8775b5 100644 --- a/setup.py +++ b/setup.py @@ -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 = 'cj59@nyu.edu' diff --git a/sparse_dot_mkl/tests/test_qr_solver.py b/sparse_dot_mkl/tests/test_qr_solver.py index 2c8243a..88874f6 100644 --- a/sparse_dot_mkl/tests/test_qr_solver.py +++ b/sparse_dot_mkl/tests/test_qr_solver.py @@ -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)