[Numpy-discussion] Deprecate poly1d and replace with Poly1d ?

2009-09-28 Thread Charles R Harris
Because poly1d exports the __array__ interface, a design error IMHO that makes it play badly with the prospective chebyshev module. For example the following should convert from a Chebyshev series to a power series chebval([1,0,0], poly1d(1,0)) and it does if I make sure to pass the poly1d as

Re: [Numpy-discussion] Deprecate poly1d and replace with Poly1d ?

2009-09-28 Thread Robert Kern
On Mon, Sep 28, 2009 at 15:46, Charles R Harris charlesr.har...@gmail.com wrote: The more basic problem here is making poly1d look like an array, which it isn't. The array bit is an implementation detail and would be private in C++. with an as_array method to retrieve the details if wanted.

Re: [Numpy-discussion] Deprecate poly1d and replace with Poly1d ?

2009-09-28 Thread Charles R Harris
On Mon, Sep 28, 2009 at 2:59 PM, Robert Kern robert.k...@gmail.com wrote: On Mon, Sep 28, 2009 at 15:46, Charles R Harris charlesr.har...@gmail.com wrote: The more basic problem here is making poly1d look like an array, which it isn't. The array bit is an implementation detail and would be