[Numpy-discussion] [ANN]: Taylorpoly, an implementation of vectorized Taylor polynomial operations and request for opinions

2010-02-27 Thread Sebastian Walter
Announcement: --- I have started to implement vectorized univariate truncated Taylor polynomial operations (add,sub,mul,div,sin,exp,...) in ANSI-C. The interface to python is implemented by using numpy.ndarray's ctypes functionality. Unit tests are implement using nose. It is B

Re: [Numpy-discussion] [ANN]: Taylorpoly, an implementation of vectorized Taylor polynomial operations and request for opinions

2010-02-27 Thread Friedrich Romstedt
To the core developers (of numpy.polynomial e.g.): Skip the mess and read the last paragraph. The other things I will post back to the list, where they belong to. I just didn't want to have off-topic discussion there. > I wanted to stress that one can do arithmetic on Taylor polynomials in > a ve

Re: [Numpy-discussion] [ANN]: Taylorpoly, an implementation of vectorized Taylor polynomial operations and request for opinions

2010-02-27 Thread Friedrich Romstedt
2010/2/27 Sebastian Walter : > IMO this kind of discussion is not offtopic since it is directly > related to the original question. Ok, but I say it's not my responsibility now if the numpy-discussion namespace is polluted now. >> 2010/2/27 Sebastian Walter : >>> On Sat, Feb 27, 2010 at 3:59 PM,

Re: [Numpy-discussion] [ANN]: Taylorpoly, an implementation of vectorized Taylor polynomial operations and request for opinions

2010-02-27 Thread Friedrich Romstedt
Ok, it took me about one hour, but here they are: Fourier-accelerated polynomials. > python Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import gdft_polynomial >>> p1 = gdft_polynomial.Poly

Re: [Numpy-discussion] [ANN]: Taylorpoly, an implementation of vectorized Taylor polynomial operations and request for opinions

2010-02-27 Thread Sebastian Walter
On Sat, Feb 27, 2010 at 10:02 PM, Friedrich Romstedt wrote: > To the core developers (of numpy.polynomial e.g.): Skip the mess and > read the last paragraph. > > The other things I will post back to the list, where they belong to. > I just didn't want to have off-topic discussion there. > >> I wan

Re: [Numpy-discussion] [ANN]: Taylorpoly, an implementation of vectorized Taylor polynomial operations and request for opinions

2010-02-27 Thread Sebastian Walter
On Sat, Feb 27, 2010 at 11:11 PM, Friedrich Romstedt wrote: > Ok, it took me about one hour, but here they are: Fourier-accelerated > polynomials. that's the spirit! ;) > >> python > Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32 > Type "help", "copyright", "credi

Re: [Numpy-discussion] [ANN]: Taylorpoly, an implementation of vectorized Taylor polynomial operations and request for opinions

2010-02-27 Thread Friedrich Romstedt
2010/2/27 Sebastian Walter : > I'm sorry this comment turns out to be confusing. Maybe it's not important. > It has apparently quite the contrary effect of what I wanted to achieve: > Since there is already a polynomial module  in numpy I wanted to > highlight their difference > and stress that t

Re: [Numpy-discussion] [ANN]: Taylorpoly, an implementation of vectorized Taylor polynomial operations and request for opinions

2010-02-27 Thread Friedrich Romstedt
2010/2/27 Sebastian Walter : > On Sat, Feb 27, 2010 at 11:11 PM, Friedrich Romstedt > wrote: >> Ok, it took me about one hour, but here they are: Fourier-accelerated >> polynomials. > > that's the spirit! ;) Yes! I like it! :-) >>> python >> Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310

Re: [Numpy-discussion] [ANN]: Taylorpoly, an implementation of vectorized Taylor polynomial operations and request for opinions

2010-02-27 Thread Friedrich Romstedt
Sebastian, and, please, be not offended by what I wrote. I regret a bit my jokes ... It's simply too late at night. Friedrich ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Reading and Comparing Two Files

2010-02-27 Thread Robert Love
What is the efficient numpy way to compare data from two different files? For the nth line in each file I want to operate on the numbers. I've been using loadtxt() data_5x5 = N.loadtxt("file5") data_8x8 = N.loadtxt("file8") for line in data_5x5: pos5 = N.array([line[0], line[1], li

[Numpy-discussion] Building Numpy Windows Superpack

2010-02-27 Thread Patrick Marsh
Greetings, I have been trying to build the numpy superpack on windows using the binaries posted by David. Unfortunately, I haven't even been able to correctly write the site.cfg file to locate all three sets of binaries needed for the superpack. When I manually specify to use only the sse3 bina

Re: [Numpy-discussion] Apply a function to all indices

2010-02-27 Thread David Warde-Farley
On 26-Feb-10, at 8:12 AM, Ernest Adrogué wrote: > Thanks for the tip. I didn't know that... > Also, frompyfunc appears to crash python when the last argument is 0: > > In [9]: func=np.frompyfunc(lambda x: x, 1, 0) > > In [10]: func(np.arange(5)) > Violació de segment > > This with Python 2.5.5, Nu