[SciPy-User] vdot vs. dot

Pauli Virtanen pav@iki...
Thu Oct 14 04:00:01 CDT 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