Re: [Numpy-discussion] Testing the python buffer protocol (bf_getbuffer / tp_as_buffer)

2011-12-17 Thread Soeren Sonnenburg
On Sat, 2011-12-17 at 15:29 +0100, Pauli Virtanen wrote: > 17.12.2011 09:42, Soeren Sonnenburg kirjoitti: > > Doesn't work, complaining that the object has no __buffer__ attribute. > > > > Digging into the numpy c code it seems numpy doesn't even support the &

Re: [Numpy-discussion] Testing the python buffer protocol (bf_getbuffer / tp_as_buffer)

2011-12-17 Thread Soeren Sonnenburg
itebuffer to be set instead of bf_getbuffer and the array buffer protocol :-( Soeren On Sat, 2011-12-17 at 03:20 +0100, Torgil Svensson wrote: > What happens if you use > > y=numpy.frombuffer(x) ? > > //Torgil > > > On Sat, Dec 17, 2011 at 1:41 AM, Soeren Sonnenburg wrote

[Numpy-discussion] Testing the python buffer protocol (bf_getbuffer / tp_as_buffer)

2011-12-16 Thread Soeren Sonnenburg
Hi, I've implemented the buffer protocol (http://www.python.org/dev/peps/pep-3118/) for some matrix class and when I manually call PyObject_GetBuffer on that object I see that I get the right matrix. Now I'd like to see numpy use the buffer protocol of my class. Does anyone know how to test that?

[Numpy-discussion] [RFC] running r, octave from python

2009-03-08 Thread Soeren Sonnenburg
Dear all, a Shogun 0.7.1 is out and available at http://www.shogun-toolbox.org which contains one new feature that might be of interest to python-scipy/numpy users. The eierlegendewollmilchsau interface. In case you don't know what this term stands for use google images :-) It is one file that w

[Numpy-discussion] calling _import_array() twice crashes python

2009-03-04 Thread Soeren Sonnenburg
Dear all, I've written a wrapper enabling to run python code from within octave (and vice versa). To this end I am embedding python in octave. So I am calling Py_Initialize(); _import_array(); Py_Finalize(); multiple times. While things work nicely on the first run, I am getting a crash on _imp

[Numpy-discussion] sparse matrices -> numpy ?

2008-04-20 Thread Soeren Sonnenburg
Dear all, is there any schedule when sparse matrices will arrive in the numpy core? Best, Soeren ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Shogun - A Large Scale Machine Learning Toolbox

2008-04-20 Thread Soeren Sonnenburg
SHOGUN ( http://www.shogun-toolbox.org ) is a large scale machine learning toolbox with focus on especially Support Vector Machines (SVM). * It provides a generic SVM object interfacing to several different SVM implementations, among them the state of the art LibSVM, SVMLight, SVMLin and GPDT. Eac