thouis / numpy-trac-migration

numpy Trac to github issues migration
2 stars 3 forks source link

np.inner is no inner product (conjugate symmetry) (Trac #2152) #5944

Open numpy-gitbot opened 12 years ago

numpy-gitbot commented 12 years ago

Original ticket http://projects.scipy.org/numpy/ticket/2152 on 2012-06-06 by trac user nschloe, assigned to unknown.

The documentation says it:

"Ordinary inner product of vectors for 1-D arrays (without complex conjugation)."

This means that, for complex vectors, np.inner -- other than its name suggests -- does not define an inner product as the symmetry isn't conjugate. For the sake of consistency, either this function should be renamed or np.inner should be made compliant with actual inner products. This of course would break backward compatibility, but for the sake of consistency with mathematics, this seems justified.

(Is there, at this point, actually any difference between np.inner and np.dot?).