[SciPy-User] vdot vs. dot

Pauli Virtanen pav at iki.fi
Thu Oct 14 05:00:01 EDT 2010


Thu, 14 Oct 2010 09:40:55 +0200, Nico Schlömer wrote:
[clip]
> vdot() returns a *scalar* here, and I've got no idea how it is computed.

It's

	>>> print np.dot( X.ravel().conjugate(), Y.ravel() )
	(16.8356363983+3.7240082208j)

And the documentation is wrong, although the examples do show that it 
flattens the inputs.

> Why isn't  vdot( x, y ) == dot( x.conjugate(), y )?

No idea, but it's probably always been like this.

	Pauli




More information about the SciPy-User mailing list