[SciPy-Dev] __bool__ for sparse matrices

Blake Griffith blake.a.griffith at gmail.com
Wed Jun 19 13:18:48 EDT 2013


Okay, I will do this for now. I was exploring using numpy.set_numeric_ops,
as discussed in this SO question:

http://stackoverflow.com/questions/14619449/how-can-i-override-comparisons-between-numpys-ndarray-and-my-type


On Wed, Jun 19, 2013 at 11:22 AM, Pauli Virtanen <pav at iki.fi> wrote:

> 19.06.2013 18:31, Blake Griffith kirjoitti:
> > It looks like the ndarray inequality methods are basically ufuncs. So
> > I'm running into the problem of overriding ufuncs.
>
> That's my understanding of the issue too.
>
> I think for the present, we can just ignore the dense matrix comparison
> tests that do not work, and just raise knownfailures in the tests. This
> is not a regression in functionality, as the ndarray comparisons with
> ndarray as left-hand-side op did not previously produce useful results.
>
> --
> Pauli Virtanen
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20130619/a83deedd/attachment.html>


More information about the SciPy-Dev mailing list