Skip to content
Prev 37293 / 63421 Next

transpose of complex matrices in R

Hello Peter

thanks for this.
On 07/30/2010 11:01 AM, peter dalgaard wrote:
That's a good way to think about it.   Perhaps this is one case where 
thinking too literally
in terms of OO-style programming [ie wanting to overload t()] is harmful.

I didn't realize until an email just now that octave has a transpose() 
function which does *not*
take the complex conjugate.   You live and learn!
Well they sort of do.  I'd call A^*  %*% A an inner product, or possibly 
an Hermitian inner product.

Would it hurt to redefine crossprod(A,B) to mean t(Conj(A)) %*% B   and 
tcrossprod(A,B) to A %*% t(Conj(B))?

(we could include an optional  'Hermitian' argument to crossprod() in 
the complex case, defaulting to TRUE?)


rksh