I am trying to optimize (memorywise the multiplication of X and its transpose X’
Does anyone know if numpys matrix multiplication takes into consideration that X’ is just the transpose of X. What I mean is that if it detects this and therfore does not create the object X’ but just works on the cols/rows of X to produce the product? Thank you for any help on this!
J.
In numpy convention, the transpose of
Xis represented byX.Tand you’re in luck,X.Tis just a view of the original arrayX, meaning that no copy is done.