[Numpy-discussion] sprint: IRC chat?

2008-08-23 Thread Damian Eads
Friends,

Are we meeting over IRC chat? I'd like to help with the sprint but 
remotely. I have to leave LA today, unfortunately.

Thanks!

Damian
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] sprint: IRC chat?

2008-08-23 Thread Gael Varoquaux
On Sat, Aug 23, 2008 at 09:42:45AM -0600, Damian Eads wrote:
 Are we meeting over IRC chat? I'd like to help with the sprint but 
 remotely. I have to leave LA today, unfortunately.

I am on #scipy on freenode.

Gaël
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] How to replace a loop for a ufunc (to test optimizations)

2008-08-23 Thread Travis E. Oliphant

Yesterday at the SciPy conference I suggested it would be a good idea to 
add a function to replace one of the inner loops in a ufunc so that an 
extension module could test an optimized inner loop more easily. 

It turns out that this is such a good idea that it's actually already in 
the code.   The UFUNC_API call that does this is called:

PyUFunc_ReplaceLoopBySignature

You would use it something like this

static void
_new_add_loopfunc(char **args,  intp *dimensions, intp *steps, void *func)
{
/* my new faster code */
}

Then in the extension module (either in the init or in a method call) 
something like this:

PyUFuncObject *ufunc;
PyUFuncGenericFunction oldloopfunc, dummy;
int signature[3]   /* This should be the number of arguments to the 
ufunc you are replacing */
PyObject *module, *dict;

module = PyImport_ImportModule(umath);
dict = PyModule_GetDict(module);

ufunc = PyDict_GetItemString(dict, add)  /* get the ufunc where you 
want to replace one of the loops */
signature[0] = NPY_DOUBLE;
signature[1] = NPY_DOUBLE;
signature[2] = NPY_DOUBLE;

if (PyUFunc_ReplaceLoopBySignature(ufunc, _new_add_loopfunc, signature, 
old1dloop)  0) {
PyErr_SetString(PyExc_RuntimeError, problem replacing loop);
/* error return i.e. return NULL or return or return -1*/
}

Then to restore the original function:

if (PyUFunc_ReplaceLoopBySignature(ufunc, old1dloop, signature, dummy) 
 0) {
/* error */
}

Remember to use import_umath() in the module you are using the UFUNC_API 
in.   Now, lot's of folks should be able to test optimizations.

-Travis
 
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] Report from SciPy

2008-08-23 Thread Travis E. Oliphant
Hi everybody,

Robert K, Chuck H, Stefan VdW, Jarrod M, David C, and I had a nice 
discussion about the future directions of NumPy.   We resolved some 
things and would like community feedback on them if there are opinions.

 * we will be moving to time-based releases (at least 2 times a year -- 
November / May) with major changes not accepted about 4 weeks before the 
release. 
 * The releases will be numbered major.minor.bugfix
 * There will be no ABI changes in minor releases
 * There will be no API changes in bugfix releases
 * Any API changes in minor releases will be done in a backward 
compatible fashion (possibly with deprecations).
 * Thus 1.2 will not break ABI compatibility but will add new API features.
 * We will push the generalized ufuncs off to 1.3
 * NumPy 2.0 will be a library and will not automagically import numpy.fft
 * We will suggest that other libraries use from numpy import fft 
instead of import numpy as np; np.fft
 * We will apply most of Andrew Dalke's speed up patches but will keep 
ctypeslib import
 * We will remove automatic import of numpy.doc from trunk
 * NumPy 1.2 will come out shortly after the conference (rc1 on Sunday).
 * SciPy 0.7b1 will come out after the sprints.

If there is anything else I missed from those who were there, please let 
us all know.

By the way,  as promised, the NumPy book is now available for download 
and the source to the book is checked in to the numpy SVN tree:

http://svn.scipy.org/svn/numpy/trunk/numpy/doc/numpybook

Best regards,

-Travis
 
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] Remove ParametricTestCase from numpy.testing

2008-08-23 Thread Stéfan van der Walt
Hey all,

Now that we have switched to Nose as a test framework, we should look
into deprecating ParametricTestCase.  Alan, have you looked into this
before?

Cheers
Stéfan
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Report from SciPy

2008-08-23 Thread Stéfan van der Walt
2008/8/23 Travis E. Oliphant [EMAIL PROTECTED]:
 By the way,  as promised, the NumPy book is now available for download
 and the source to the book is checked in to the numpy SVN tree:

 http://svn.scipy.org/svn/numpy/trunk/numpy/doc/numpybook

We just reorganised the docs somewhat, so this URL is now

http://svn.scipy.org/svn/numpy/trunk/doc/numpybook/

A great big thanks to Travis for releasing his book to the community!

Regards
Stéfan
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Report from SciPy

2008-08-23 Thread James A. Benson

On Sat, 23 Aug 2008, Stéfan van der Walt wrote:


2008/8/23 Travis E. Oliphant [EMAIL PROTECTED]:

By the way,  as promised, the NumPy book is now available for download
and the source to the book is checked in to the numpy SVN tree:

http://svn.scipy.org/svn/numpy/trunk/numpy/doc/numpybook


We just reorganised the docs somewhat, so this URL is now

http://svn.scipy.org/svn/numpy/trunk/doc/numpybook/

A great big thanks to Travis for releasing his book to the community!



Agreed!!!

I do not see any pdf file etc. of his book at the above
link.

Cheers,

Jim (purchaser of his book before release).___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Report from SciPy

2008-08-23 Thread Keith Goodman
On Sat, Aug 23, 2008 at 7:04 PM, James A. Benson
[EMAIL PROTECTED] wrote:
 On Sat, 23 Aug 2008, Stéfan van der Walt wrote:

 2008/8/23 Travis E. Oliphant [EMAIL PROTECTED]:

 By the way,  as promised, the NumPy book is now available for download
 and the source to the book is checked in to the numpy SVN tree:

 http://svn.scipy.org/svn/numpy/trunk/numpy/doc/numpybook

 We just reorganised the docs somewhat, so this URL is now

 http://svn.scipy.org/svn/numpy/trunk/doc/numpybook/

 A great big thanks to Travis for releasing his book to the community!


 Agreed!!!

 I do not see any pdf file etc. of his book at the above
 link.

http://www.tramy.us/numpybook.pdf
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Remove ParametricTestCase from numpy.testing

2008-08-23 Thread Alan McIntyre
On Sat, Aug 23, 2008 at 4:49 PM, Stéfan van der Walt [EMAIL PROTECTED] wrote:
 Now that we have switched to Nose as a test framework, we should look
 into deprecating ParametricTestCase.  Alan, have you looked into this
 before?

Actually, it was removed right after the nose framework was working,
but I think a decision was made to keep it around until 1.3 in case
somebody was using it, so I put it back. :)  After the 1.2 release it
can just be deleted without any issues, I think.
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion