[SciPy-dev] Fancy indexing curiosity

Pearu Peterson pearu at scipy.org
Mon Jan 9 04:18:52 CST 2006



On Mon, 9 Jan 2006, Pearu Peterson wrote:

> Here numpy.dot returns 0 on empty arrays. I think it should raise an
> exception (ValueError?) instead like ddot in scipy.linalg.blas.fblas does.

Ok, I can reproduce dot returning nonsense also here:

In [2]: from numpy import core
In [4]: core.multiarray.dot([],[])
Out[4]: 1075591804

So, it's a multiarray.dot bug.

Pearu





More information about the Scipy-dev mailing list