[Numpy-discussion] inplace dot products (Robert Kern) (Re: Numpy-discussion Digest, Vol 29, Issue 69)

2009-02-20 Thread David Henderson
Hello all, I've been toying with the idea of an extended precision accumulator for the dot product written in numpy/core/src/multiarraymodule.c Once the modification is being performed, there is no reason not to allow the specification of an output array. The functions that exist now: Th

[Numpy-discussion] additional dtype argument to numpy.dot() (Re: Numpy-discussion Digest, Vol 29, Issue 48)

2009-02-18 Thread David Henderson
like they would entail modifying the source file "multiarrayobject.c". The existing code is: /*NUMPY_API Numeric.innerproduct(a,v) */ static PyObject * PyArray_InnerProduct(PyObject *op1, PyObject *op2) { If I make changes, can I get them inserted into the numpy source base (af

[Numpy-discussion] improvement request to np.dot(a, b) - extended precision summation

2009-02-13 Thread David Henderson
Hello all, I'd like accumulate the summation in extended precision, "double" sum for float inputs, "long double" sum for "double" inputs. A way of doing this is to add an optional third argument to dot - to specify the summation type. I've looked into the code, and the source file multiarr