Re: [Numpy-discussion] GSoC proposal -- Numpy SciPy

2013-05-01 Thread Blake Griffith
There are several situations where that comes up (Like comparing two sparse matrices A == B) There is a SparseEfficiancyWarning that can be thrown, but the way this should be implemented still needs to be discussed. I will be writing a specification on how ufuncs and ndarrays are handled by the spa

Re: [Numpy-discussion] GSoC proposal -- Numpy SciPy

2013-05-01 Thread Daπid
On 1 May 2013 20:12, Blake Griffith wrote: > However, it would still be useful to have ufuncs working well with the > sparse package. How are you planning to deal with ufunc(0) != 0? cos(sparse) is actually dense. ___ NumPy-Discussion mailing list NumPy

Re: [Numpy-discussion] GSoC proposal -- Numpy SciPy

2013-05-01 Thread Blake Griffith
Oh wow, I just assumed that `dot` was a ufunc... However, it would still be useful to have ufuncs working well with the sparse package. I don't understand everything that is going on in https://github.com/numpy/numpy/blob/master/numpy/core/src/umath/ufunc_object.c But I assumed that I would be abl

Re: [Numpy-discussion] GSoC proposal -- Numpy SciPy

2013-04-30 Thread Nathaniel Smith
On Tue, Apr 30, 2013 at 4:02 PM, Pauli Virtanen wrote: > 30.04.2013 22:37, Nathaniel Smith kirjoitti: > [clip] >> How do you plan to go about this? The obvious option of just calling >> scipy.sparse.issparse() on ufunc entry raises some problems, since >> numpy can't depend on or even import scipy

Re: [Numpy-discussion] GSoC proposal -- Numpy SciPy

2013-04-30 Thread Pauli Virtanen
30.04.2013 22:37, Nathaniel Smith kirjoitti: [clip] > How do you plan to go about this? The obvious option of just calling > scipy.sparse.issparse() on ufunc entry raises some problems, since > numpy can't depend on or even import scipy, and we might be reluctant > to add such a special case for wh

Re: [Numpy-discussion] GSoC proposal -- Numpy SciPy

2013-04-30 Thread Charles R Harris
On Tue, Apr 30, 2013 at 1:37 PM, Nathaniel Smith wrote: > On Tue, Apr 30, 2013 at 3:19 PM, Blake Griffith > wrote: > > Hello, I'm writing a GSoC proposal, mostly concerning SciPy, but it > involves > > a few changes to NumPy. > > The proposal is titled: Improvements to the sparse package of Scip

Re: [Numpy-discussion] GSoC proposal -- Numpy SciPy

2013-04-30 Thread Nathaniel Smith
On Tue, Apr 30, 2013 at 3:19 PM, Blake Griffith wrote: > Hello, I'm writing a GSoC proposal, mostly concerning SciPy, but it involves > a few changes to NumPy. > The proposal is titled: Improvements to the sparse package of Scipy: support > for bool dtype and better interaction with NumPy > and ca

[Numpy-discussion] GSoC proposal -- Numpy SciPy

2013-04-30 Thread Blake Griffith
Hello, I'm writing a GSoC proposal, mostly concerning SciPy, but it involves a few changes to NumPy. The proposal is titled: Improvements to the sparse package of Scipy: support for bool dtype and better interaction with NumPy and can be found on my GitHub: https://github.com/cowlicks/GSoC-proposal