thouis / numpy-trac-migration

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

Provide .H for arrays (Trac #1638) #5439

Closed numpy-gitbot closed 12 years ago

numpy-gitbot commented 12 years ago

Original ticket http://projects.scipy.org/numpy/ticket/1638 on 2010-10-14 by trac user nicki, assigned to unknown.

Hi,

I noticed that one difference between numpy arrays and matrices is that ".H" (transpose + conjugation) is only implemented for matrices. ".T", however, being structurally completely equivalent, is implemented for both. A use case for ".H" would be mass dot-products for multivectors.

In any case, this is an inconsistency in numpy.

Cheers, Nico

numpy-gitbot commented 12 years ago

atmention:charris wrote on 2010-10-14

This came up on the list a few years ago. IIRC, the reason not to implement it was that .T is a view of the array data, whereas .H needs to produce a new array because of the conjugation. In any case, I think that you need to raise this issue on the list for discussion.

numpy-gitbot commented 12 years ago

atmention:charris wrote on 2010-10-15

I'm going to close this now. A new bit of information that came from the discussion was that the BLAS dot routine had a flag for conjugation.