Re: [Numpy-discussion] [IPython-dev] Discussion with Guido van Rossum and (hopefully) core python-dev on scientific Python and Python3

2012-02-14 Thread Chris Barker
On Mon, Feb 13, 2012 at 6:19 PM, Mark Wiebe mwwi...@gmail.com wrote: It might be nice to turn the matrix class into a short class hierarchy, am I confused, or did a thread get mixed in? This seems to be a numpy/scipy thing, not a Python3 thing. Or is there some support in Python itself required

Re: [Numpy-discussion] [IPython-dev] Discussion with Guido van Rossum and (hopefully) core python-dev on scientific Python and Python3

2012-02-14 Thread Dag Sverre Seljebotn
On 02/14/2012 08:59 AM, Chris Barker wrote: On Mon, Feb 13, 2012 at 6:19 PM, Mark Wiebemwwi...@gmail.com wrote: It might be nice to turn the matrix class into a short class hierarchy, am I confused, or did a thread get mixed in? This seems to be a numpy/scipy thing, not a Python3 thing. Or

Re: [Numpy-discussion] [IPython-dev] Discussion with Guido van Rossum and (hopefully) core python-dev on scientific Python and Python3

2012-02-14 Thread Chris Barker
On Tue, Feb 14, 2012 at 9:16 AM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: It was about the need for a dedicated matrix multiplication operator. has anyone proposed that? I do think we've had a proposal on the table for generally more operators: i.e. like matlab's .* vs *, and yes,

Re: [Numpy-discussion] [IPython-dev] Discussion with Guido van Rossum and (hopefully) core python-dev on scientific Python and Python3

2012-02-14 Thread Dag Sverre Seljebotn
On 02/14/2012 03:12 PM, Chris Barker wrote: On Tue, Feb 14, 2012 at 9:16 AM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: It was about the need for a dedicated matrix multiplication operator. has anyone proposed that? I do think we've had a proposal on the table for generally more

Re: [Numpy-discussion] [IPython-dev] Discussion with Guido van Rossum and (hopefully) core python-dev on scientific Python and Python3

2012-02-14 Thread Fernando Perez
On Tue, Feb 14, 2012 at 3:12 PM, Chris Barker chris.bar...@noaa.gov wrote: On Tue, Feb 14, 2012 at 9:16 AM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: It was about the need for a dedicated matrix multiplication operator. has anyone proposed that? I do think we've had a proposal on

Re: [Numpy-discussion] [IPython-dev] Discussion with Guido van Rossum and (hopefully) core python-dev on scientific Python and Python3

2012-02-14 Thread Henry Gomersall
On Tue, 2012-02-14 at 15:12 -0800, Chris Barker wrote: On Tue, Feb 14, 2012 at 9:16 AM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: It was about the need for a dedicated matrix multiplication operator. has anyone proposed that? I do think we've had a proposal on the table for

Re: [Numpy-discussion] [IPython-dev] Discussion with Guido van Rossum and (hopefully) core python-dev on scientific Python and Python3

2012-02-13 Thread Aaron Meurer
I'd like the ability to make in (i.e., __contains__) return something other than a bool. Also, the ability to make the x y z syntax would be useful. It's been suggested that the ability to override the boolean operators (and, or, not) would be the way to do this (pep 335), though I'm not 100%

Re: [Numpy-discussion] [IPython-dev] Discussion with Guido van Rossum and (hopefully) core python-dev on scientific Python and Python3

2012-02-13 Thread Mark Wiebe
It might be nice to turn the matrix class into a short class hierarchy, something like this: class MatrixBase class DenseMatrix(MatrixBase) class TriangularMatrix(MatrixBase) # Maybe a few variations of upper/lower triangular and whether the diagonal is stored class SymmetricMatrix(MatrixBase)

Re: [Numpy-discussion] [IPython-dev] Discussion with Guido van Rossum and (hopefully) core python-dev on scientific Python and Python3

2012-02-13 Thread Dag Sverre Seljebotn
On 02/13/2012 06:19 PM, Mark Wiebe wrote: It might be nice to turn the matrix class into a short class hierarchy, something like this: class MatrixBase class DenseMatrix(MatrixBase) class TriangularMatrix(MatrixBase) # Maybe a few variations of upper/lower triangular and whether the