[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:
> vdot() returns a *scalar* here, and I've got no idea how it is computed.


	>>> print np.dot( X.ravel().conjugate(), Y.ravel() )

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.


More information about the SciPy-User mailing list