Re: [Numpy-discussion] [SciPy-dev] Doc-day

2007-12-29 Thread Travis E. Oliphant
Charles R Harris wrote: > > > On Dec 29, 2007 7:59 PM, Fernando Perez <[EMAIL PROTECTED] > > wrote: > > On Dec 29, 2007 6:51 PM, Charles R Harris > <[EMAIL PROTECTED] > wrote: > > > If not, we should > > definitely decide on the s

Re: [Numpy-discussion] [SciPy-dev] Doc-day

2007-12-29 Thread Charles R Harris
On Dec 29, 2007 7:59 PM, Fernando Perez <[EMAIL PROTECTED]> wrote: > On Dec 29, 2007 6:51 PM, Charles R Harris <[EMAIL PROTECTED]> > wrote: > > > If not, we should > > definitely decide on the structure of the docstrings and stick to it. > > +100 > I have raised the topic of documentation formats

Re: [Numpy-discussion] [SciPy-dev] Doc-day

2007-12-29 Thread Fernando Perez
On Dec 29, 2007 6:51 PM, Charles R Harris <[EMAIL PROTECTED]> wrote: > If not, we should > definitely decide on the structure of the docstrings and stick to it. +100 I'm about to commit docstrings for scimath (what I started yesterday). After some fixes to the numpy build, I can now work in-pla

Re: [Numpy-discussion] [SciPy-dev] Doc-day

2007-12-29 Thread Charles R Harris
On Dec 28, 2007 5:26 AM, Stefan van der Walt <[EMAIL PROTECTED]> wrote: > On Thu, Dec 27, 2007 at 09:27:09PM -0800, Jarrod Millman wrote: > > On Dec 27, 2007 7:42 PM, Travis E. Oliphant <[EMAIL PROTECTED]> > wrote: > > > Doc-day will start tomorrow (in about 12 hours). It will be Friday > for > >

Re: [Numpy-discussion] [C++-sig] Overloading sqrt(5.5)*myvector

2007-12-29 Thread Robert Kern
Bruce Sherwood wrote: > There is also the question of > whether it would pay for numpy to make what is probably an exceedingly > fast check and do much faster calculations of sqrt(scalar) and other > such mathematical functions. There is no question that it would pay. It takes time and effort t

Re: [Numpy-discussion] [C++-sig] Overloading sqrt(5.5)*myvector

2007-12-29 Thread Bruce Sherwood
Okay, I've implemented the scheme below that was proposed by Scott Daniels on the VPython mailing list, and it solves my problem. It's also much faster than using numpy directly: even with the "def "and "if" overhead: sqrt(scalar) is over 3 times faster than the numpy sqrt, and sqrt(array) is v

Re: [Numpy-discussion] [C++-sig] Overloading sqrt(5.5)*myvector

2007-12-29 Thread Bruce Sherwood
I found by timing measurements that a faster scheme with less penalty for the case of sqrt(array) looks like this: def sqrt(x): if type(x) is float: return mathsqrt(x) return numpysqrt(x) Bruce Sherwood wrote: > Roman Yakovenko wrote: >> On Dec 29, 2007 7:47 AM, Bruce Sherwood <[EMAIL

Re: [Numpy-discussion] [C++-sig] Overloading sqrt(5.5)*myvector

2007-12-29 Thread Bruce Sherwood
Roman Yakovenko wrote: > On Dec 29, 2007 7:47 AM, Bruce Sherwood <[EMAIL PROTECTED]> wrote: > >> I realized belatedly that I should upgrade from Boost 1.33 to 1.34. >> Alas, that didn't cure my problem. >> > Can you post small and complete example of what you are trying to achieve? > I d

Re: [Numpy-discussion] numpy installed but can' use

2007-12-29 Thread Alan G Isaac
On Sat, 29 Dec 2007, dikshie apparently wrote: > so import numpy and from numpy import * > are different ? http://docs.python.org/tut/node8.html hth, Alan Isaac ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/