From list at emeel.net Tue Sep 11 11:31:32 2018 From: list at emeel.net (list at emeel.net) Date: Tue, 11 Sep 2018 17:31:32 +0200 Subject: [SciPy-User] Multiply dense numpy matrix with sparse scipy vector Message-ID: Upon profiling, we found that multiplying a dense numpy matrix, e.g. A = np.eye(5) with a sparse scipy vector, e.g. x = scipy.sparse.coo_matrix(np.eye(5)[4]).T did in fact not make use of the sparsity of x when using @. That is: A @ x is not a sparse computation. How can this be done? From diagonaldevice at gmail.com Thu Sep 13 11:43:34 2018 From: diagonaldevice at gmail.com (Michael Lamparski) Date: Thu, 13 Sep 2018 11:43:34 -0400 Subject: [SciPy-User] np.array_equal for sparse arrays Message-ID: Hello everyone, I feel like I am missing something. It seems that sparse matrices have no 'any' method or anything useful regarding equality. Is there not a better way to write this? def sparse_equal(a, b): """ Equality test for sparse matrices which performs standard floating point equality, allows mismatched types, considers missing elements equal to zero, and requires identical shape (no broadcasting) """ return a.shape == b.shape and not (a != b).data.any() (I suppose I could also write 'not (a != b).nnz', since the implementation of != appears to eliminate zeros, but I'm not sure if I should be relying on that) --- Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: From cimrman3 at ntc.zcu.cz Mon Sep 17 05:45:11 2018 From: cimrman3 at ntc.zcu.cz (Robert Cimrman) Date: Mon, 17 Sep 2018 11:45:11 +0200 Subject: [SciPy-User] ANN: SfePy 2018.3 Message-ID: <8de51b72-39b8-d407-471a-d8a7b5b2703e@ntc.zcu.cz> I am pleased to announce release 2018.3 of SfePy. Description ----------- SfePy (simple finite elements in Python) is a software for solving systems of coupled partial differential equations by the finite element method or by the isogeometric analysis (limited support). It is distributed under the new BSD license. Home page: http://sfepy.org Mailing list: https://mail.python.org/mm3/mailman3/lists/sfepy.python.org/ Git (source) repository, issue tracker: https://github.com/sfepy/sfepy Highlights of this release -------------------------- - easier setting of values of variables - new script for outline edge extraction - new example: homogenization of a piezoelectric heterogeneous structure For full release notes see http://docs.sfepy.org/doc/release_notes.html#id1 (rather long and technical). Cheers, Robert Cimrman --- Contributors to this release in alphabetical order: Robert Cimrman Vladimir Lukes From charlesr.harris at gmail.com Sun Sep 23 08:59:57 2018 From: charlesr.harris at gmail.com (Charles R Harris) Date: Sun, 23 Sep 2018 06:59:57 -0600 Subject: [SciPy-User] NumPy 1.15.2 released Message-ID: Hi All, On behalf of the NumPy team, I am pleased to announce the release of NumPy 1.15.2. This is a bug fix release for bugs and regressions reported following the 1.15.2 release. The fixes are: - the matrix PendingDeprecationWarning is now suppressed in pytest 3.8, - the new cached allocations machinery has been fixed to be thread safe, - the boolean indexing of subclasses now works correctly, - a small memory leak in PyArray_AdaptFlexibleDType has been fixed. The Python versions supported by this release are 2.7, 3.4-3.7. The wheels are linked with OpenBLAS v0.3.0, which should fix some of the linalg problems reported for NumPy 1.14. Wheels for this release can be downloaded from PyPI , source archives are available from Github Compatibility Note ================== The NumPy 1.15.x OS X wheels released on PyPI no longer contain 32-bit binaries. That will also be the case in future releases. See `#11625 `__ for the related discussion. Those needing 32-bit support should look elsewhere or build from source. Contributors ============ A total of 4 people contributed to this release. People with a "+" by their names contributed a patch for the first time. * Charles Harris * Julian Taylor * Marten van Kerkwijk * Matti Picus Pull requests merged ==================== A total of 4 pull requests were merged for this release. * `#11902 `__: BUG: Fix matrix PendingDeprecationWarning suppression for pytest... * `#11981 `__: BUG: fix cached allocations without the GIL for 1.15.x * `#11982 `__: BUG: fix refcount leak in PyArray_AdaptFlexibleDType * `#11992 `__: BUG: Ensure boolean indexing of subclasses sets base correctly. Cheers, Charles Harris -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlesr.harris at gmail.com Sun Sep 23 13:36:01 2018 From: charlesr.harris at gmail.com (Charles R Harris) Date: Sun, 23 Sep 2018 11:36:01 -0600 Subject: [SciPy-User] Numpy 1.14.6 release Message-ID: Hi All, On behalf of the NumPy team, I am pleased to announce the release of NumPy 1.14.6. This is a bug fix release for bugs and regressions reported following the 1.14.5 release. The significant fixes are: - Fix for behavior change in ``ma.masked_values(shrink=True)`` - Fix the new cached allocations machinery to be thread safe. The Python versions supported by this release are 2.7, 3.4-3.7. The wheels are linked with OpenBLAS v0.3.0, which should fix some of the linalg problems reported for earlier releases of NumPy 1.14. Wheels for this release can be downloaded from PyPI , source archives are available from Github . Compatibility Note ================== The NumPy 1.14.6 OS X wheels released on PyPI no longer contain 32-bit binaries. See #11625 for the related discussion. Those needing 32-bit support should look elsewhere or build from source. Contributors ============ A total of 4 people contributed to this release. People with a "+" by their names contributed a patch for the first time. - Charles Harris - Eric Wieser - Julian Taylor - Matti Picus Pull requests merged ==================== A total of 4 pull requests were merged for this release. - #11985: BUG: fix cached allocations without the GIL - #11986: BUG: Undo behavior change in ma.masked_values(shrink=True) - #11987: BUG: fix refcount leak in PyArray_AdaptFlexibleDType - #11995: TST: Add Python 3.7 testing to NumPy 1.14. Cheers, Charles Harris -------------- next part -------------- An HTML attachment was scrubbed... URL: